
#16209: GHC behaves differently when binding has separate or inlined type declaration -------------------------------------+------------------------------------- Reporter: fghibellini | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by dmwit): See further discussion on [https://stackoverflow.com/q/54293485/791604 StackOverflow]. Executive summary of my thoughts there: 7.10.3 is correct to disallow the first program, and buggy because it allows the second program; meanwhile, modern GHC correctly disallows both. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16209#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler