Add a caveat to the GHC.Generics examples about :+: nesting
authorRyan Scott <ryan.gl.scott@gmail.com>
Mon, 24 Jul 2017 15:54:37 +0000 (11:54 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Mon, 24 Jul 2017 15:54:38 +0000 (11:54 -0400)
commit88f20bdb60fb9469fa8ae953f7c2509d1913fdf7
tree9e7a34b27dc282158bf6673d4709ba3a43438bda
parent145f1c7f2367ff8404905fc8eca8de902711d05e
Add a caveat to the GHC.Generics examples about :+: nesting

Summary:
GHC's choice in how it nests `:+:` can sometimes affect the
implementaiton of `GHC.Generics`-related code, so we should make a note of
this in the examples we provide. Fixes #9453.

Test Plan: Read it, like it, build it, ship it

Reviewers: bgamari, austin, hvr

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #9453

Differential Revision: https://phabricator.haskell.org/D3782
docs/users_guide/glasgow_exts.rst
libraries/base/GHC/Generics.hs