Generic instances for GHC AST

Alan & Kim Zimmerman alan.zimm at gmail.com
Mon Oct 5 18:36:08 UTC 2015


I did note this commit and intend revisiting the AST generic instances [1]
in future.

Alan

[1] https://github.com/alanz/ghc-generic-instances


On Mon, Oct 5, 2015 at 7:06 PM, Ryan Scott <ryan.gl.scott at gmail.com> wrote:

> > 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.
> -----
> [1]
> https://git.haskell.org/ghc.git/commit/6cde981a8788b225819be28659caddc35b77972d
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20151005/6679e968/attachment.html>


More information about the ghc-devs mailing list