[GHC] #13175: Documenting what can be derived 'out of the box' by GHC's "deriving"
GHC
ghc-devs at haskell.org
Tue Jan 24 03:10:32 UTC 2017
#13175: Documenting what can be derived 'out of the box' by GHC's "deriving"
-------------------------------------+-------------------------------------
Reporter: carette | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Documentation | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Documentation
Unknown/Multiple | bug
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Nowhere in the documentation is it clearly stated which classes can be
derived (assuming extensions as necessary) by GHC's "deriving" mechanism.
As determined by reading the sources, this appears to be
- Bounded, Enum, Eq, Ix, Ord, Read, Show, Functor, Foldable,
Traversable, Generic, Generic1, Data, Lift.
This was discussed on haskell-cafe -- see
https://mail.haskell.org/pipermail/haskell-cafe/2016-October/125379.html.
PS: I would be willing to fix this myself, if only I knew *where* to
insert that information so that it is easily ''findable''!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13175>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list