deriving Bits

Simon Peyton Jones simonpj at microsoft.com
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.

Simon

| -----Original Message-----
| From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Kazu
| Yamamoto
| Sent: 03 September 2014 06:48
| To: ghc-devs at haskell.org
| 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:
| 
| 	https://www.haskell.org/ghc/docs/7.8.3/html/users_guide/deriving.h
| 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 haskell.org
| http://www.haskell.org/mailman/listinfo/ghc-devs


More information about the ghc-devs mailing list