
#14111: strange error when using data families with levity polymorphism and unboxed sums and data families -------------------------------------+------------------------------------- Reporter: carter | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: TypeFamilies Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 13737 | Blocking: Related Tickets: #14457 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Correct, the program in comment:23 no longer compiles: {{{ Bug.hs:6:3: error: • Couldn't match expected type ‘T’ with actual type ‘S’ • In the definition of data constructor ‘MkT’ In the data declaration for ‘T’ | 6 | MkT :: Int -> S | ^^^^^^^^^^^^^^^ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14111#comment:25 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler