[GHC] #15528: Match is missing a Data instance

#15528: Match is missing a Data instance -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Keywords: newcomer | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If I try to use `showAstData` on a `Match` then GHC complains that there is no Data instance. {{{ No instance for (Data (Expr.Match p (Expr.LHsExpr p))) }}} It seems that all the constituent parts of `Match` have a `Data` instance so `Match` should as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15528 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15528: Match is missing a Data instance -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: task | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: invalid | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => closed * resolution: => invalid Comment: There is actually instances in `HsInstances` but only if `p` is instantiated to something specific. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15528#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC