[GHC] #11417: Missing context in Generics example

#11417: Missing context in Generics example -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Core | Version: 7.10.3 Libraries | 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: -------------------------------------+------------------------------------- The Haddocks for `GHC.Generics` give an example of a default implementation using Generics: {{{#!hs class Encode a where encode :: a -> [Bool] default encode :: (Generic a) => a -> [Bool] encode x = encode' (from x) }}} The default signature is missing some context. It should read {{{#!hs default encode :: (Generic a, Encode' (Rep a)) => a -> [Bool] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11417 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11417: Missing context in Generics example -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Core Libraries | Version: 7.10.3 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by dfeuer): I've set a short milestone and high priority because this should be an extremely quick fix. I'd submit the patch myself, but my local copy of the source is outdated and I've forgotten some procedures. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11417#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11417: Missing context in Generics example -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Core Libraries | Version: 7.10.3 Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by dfeuer): * owner: => bgamari -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11417#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11417: Missing context in Generics example
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: bgamari
Type: bug | Status: new
Priority: high | Milestone: 8.0.1
Component: Core Libraries | Version: 7.10.3
Resolution: | 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: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11417: Missing context in Generics example -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: bgamari Type: bug | Status: closed Priority: high | Milestone: 8.0.1 Component: Core Libraries | Version: 7.10.3 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: I've merged this into `master` and `ghc-8.0`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11417#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC