[GHC] #9453: The example for GHC Generics is kinda broken
GHC
ghc-devs at haskell.org
Tue Aug 19 08:37:30 UTC 2014
#9453: The example for GHC Generics is kinda broken
-------------------------------------+-------------------------------------
Reporter: Feuerbach | Owner: dreixel
Type: bug | Status: new
Priority: normal | Milestone:
Component: | Version: 7.8.2
Documentation | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by dreixel):
Yes; certainly if the way the compiler nests sums in the automatic
derivation of `Generic` instances changes, or if the user is giving their
own instances, there is no guarantee that the serialisation outcome is the
same. I could perhaps add a note to the example in the manual to highlight
the fact that it doesn't try to work across different versions of the
compiler. Updating the example to deal with different nestings would be
overkill, I think.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9453#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list