| ... | ... | @@ -46,4 +46,6 @@ The only real change is that some of the default declarations are provided gener |
|
|
|
|
|
|
|
## Discussion
|
|
|
|
|
|
|
|
[ http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html\#stand-alone-deriving](http://www.haskell.org/ghc/dist/current/docs/users_guide/type-extensions.html#stand-alone-deriving) describes an implementation of something very like this in GHC.
|
|
|
|
|
|
|
|
[ http://haskell.org/haskellwiki/GHC/Stand-alone_deriving_declarations](http://haskell.org/haskellwiki/GHC/Stand-alone_deriving_declarations) contains a great discussion of some of these ideas. (NB. Section 3 is misleading: leaving the clauses out of an instance declaration *does not* leave all the methods undefined; rather it gives the default methods of the class). |