Ticket #7614 (closed bug: duplicate)
tc_hs_type: bang : The impossible happened
Description
A simple data structure with bang patterns like the following:
data MyType
= MyType
{ a :: !Int
, b :: !Maybe Int
}
results in:
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.1 for x86_64-unknown-linux):
tc_hs_type: bang
Adding parentheses around the "Maybe Int" like this:
data MyType
= MyType
{ a :: !Int
, b :: !(Maybe Int)
}
is accepted, but it would be nice if the former example printed a syntax error or some sort of other warning rather than just a panic.
Change History
Note: See
TracTickets for help on using
tickets.
