Generic instances for GHC AST

Ryan Scott at
Mon Oct 5 17:06:50 UTC 2015

> If the unboxed types are a problem for the automatic Generic derivation, a
> manual instance could be written instead.

As of recently [1], -XDeriveGeneric should be capable of handing
unboxed types, so that removes one major technical limitation. I'm not
sure which unboxed types GHC's API uses off of the top of my head, but
if you need something other than Addr#, Char#, Double#, Int#, or
Word#, it wouldn't be too difficult to add support for them.

Ryan S.

More information about the ghc-devs mailing list