Ticket #1154 (closed merge: fixed)
GADT syntax for newtype causes tcConDecl exception
| Reported by: | ccshan | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6.1 |
| Component: | Compiler | Version: | 6.6 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | tc225, tcfail176 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
$ cat Bug.hs
{-# OPTIONS -fglasgow-exts #-}
module Bug where
newtype Bug a where Bug :: a -> Bug a
$ ghc -c Bug.hs
ghc-6.6: panic! (the 'impossible' happened)
(GHC version 6.6 for i386-unknown-linux):
typecheck/TcTyClsDecls.lhs:(468,0)-(524,4): Non-exhaustive patterns in function tcConDecl
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Change History
Note: See
TracTickets for help on using
tickets.
