`output (data)` vs `receive (general)`

What is the difference between the two in the GHC. They seem similar in purpose, but deriving (Data)have been around for a while, but deriving (Generic)have recently been added to the GHC.

Is it deriving (Generic)basically an “upgrade” to deriving (Data)or do both classes have different goals?

+4
source share
1 answer

I almost doubt to answer this question because I only understand a little of it myself, but I spent a couple of days looking at it myself about a year ago, and this is my real understanding ...

Both classes are used for introspection .... Using them, you can access paragraphs of the Haskell code (the Haskell program itself).

, , , , .

  • () , , .

  • (Generic) , parsetree, ( ).

" ()" , , , (... ).

"" (Generic) " , , (.. ). GHC.

- " ()" - "" -, .

Haskell - Haskell parsetrees, 100% compiletime , (.. , , Lisp).

, , , , , - ( ).

+1

All Articles