
#11028: Refactor ConDecl -------------------------------------+------------------------------------- Reporter: simonpj | Owner: alanz 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: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I think you should just move the check to the typechecker. It's there to stop you writing {{{ f :: { x::Int } -> Int f = blah }}} in normal code. But the renamer now treats a GADT constructor type uniformly, so we don't want to reject it. The type checker treats them differently, so it can reject `HsRecTy` in ordinary types but not in GADTs -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11028#comment:27 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler