I have nothing against this.If the unboxed types are a problem for the automatic Generic derivation, a manual instance could be written instead.Cheers,PedroOn Wed, Jan 14, 2015 at 9:03 PM, Alan & Kim Zimmerman <alan.zimm@gmail.com> wrote:_______________________________________________I know there were some concerns earlier about too many instances being derived, and its impact on compilation time and memory, so the minimal version may be best.So, does it make sense in GHC to at least derive Generic for the items that are opaque, and at most to do so for the whole AST.because the constructors are not all in scope.If I try to standalone derive these, the derivation eventually fails forAt the moment every part of the GHC AST derives instances of Data and Typeable.There are no instances of Generic.
deriving instance Generic (Name)This will allow the new generation libraries built around Generics to perform on GHC data structures too.Alan
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs