[Haskell-beginners] Defining an instance: Syntax that works exactly sometimes

Brandon Allbery allbery.b at gmail.com
Fri Jan 23 03:40:46 UTC 2015


On Thu, Jan 22, 2015 at 10:34 PM, Jeffrey Brown <jeffbrown.the at gmail.com>
wrote:

> I have not found the "deriving" keyword's specification anywhere.


The correct place to look for this and other things, including instances,
is the Haskell Report.

https://www.haskell.org/onlinereport/haskell2010/haskellch4.html#x10-780004.3.3
  4.3.3. Derived Instances

https://www.haskell.org/onlinereport/haskell2010/haskellch4.html#x10-770004.3.2
  4.3.2. Instance Declarations

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150122/7f4796fb/attachment.html>


More information about the Beginners mailing list