deriving Bits

Simon Peyton Jones simonpj at
Wed Sep 3 06:22:48 UTC 2014

Can you give an example?   GHC has no specific code for Bits as far as I know.  Perhaps you are using GeneralisedNewtypeDeriving?  You don't give enough context to say.


| -----Original Message-----
| From: ghc-devs [mailto:ghc-devs-bounces at] On Behalf Of Kazu
| Yamamoto
| Sent: 03 September 2014 06:48
| To: ghc-devs at
| Subject: deriving Bits
| Hi,
| Recently, I found that we can put Bits in "deriving". I checked the
| GHC manual but it seems to me that this page does not cover Bits:
| tml
| Are there any other classes which can be automatically derived and are
| not listed in this page?
| If the number of such classes is not large, how about adding them to
| this page?
| --Kazu
| _______________________________________________
| ghc-devs mailing list
| ghc-devs at

More information about the ghc-devs mailing list