
#10959: MINIMAL pragma and default implementations -------------------------------------+------------------------------------- Reporter: basvandijk | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by basvandijk): I guess Bryan added because it's the only required method to implement since `toEncoding` is defined in terms of it. However I just read in the GHC user guide that: "If no MINIMAL pragma is given in the class declaration, it is just as if a pragma {-# MINIMAL op1, op2, ..., opn #-} was given, where the opi are the methods (a) that lack a default method in the class declaration..." So this means we can just safely remove the pragma. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10959#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler