Ticket #32 (closed bug report: fixed)
Parse failure ("Illegal class assertion") on parenthesised single-item class contexts
| Reported by: | ganesh | Owned by: | nibro |
|---|---|---|---|
| Priority: | major | Milestone: | Full code support |
| Component: | parser | Version: | 0.5.3 |
| Keywords: | Cc: | ganesh.sittampalam@… |
Description
This is in 0.5.3 (shouldn't that be listed in the versions field?)
module Test where foo :: (Eq a) => a -> a foo x = x
ParseFailed (SrcLoc {srcFilename = "test.hs", srcLine = 3, srcColumn = 15}) "Illegal class assertion"
If I remove the () around Eq a, the problem goes away.
Change History
Note: See
TracTickets for help on using
tickets.
