
#11513: Work out when GADT parameters should be specified -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): {{{ data G a where MkG :: forall b a. b -> a -> G a }}} Currently, no wrapper is required here. Note that `G` is not a GADT. The worker has type `forall a b. b -> a -> G a`, with universals before existentials. Because we have no wrapper, the user sees the worker type. I'm proposing making a wrapper in this case. Does that clarify? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11513#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler