[GHC] #15761: pprFamInstLHS drops parentheses
GHC
ghc-devs at haskell.org
Wed Oct 17 14:33:55 UTC 2018
#15761: pprFamInstLHS drops parentheses
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
If I say
{{{#!hs
data family (a + b) c d
data instance (Int + Bool) Double = Float
}}}
GHC says
{{{
• Expecting one more argument to ‘Int + Bool Double’
Expected a type, but ‘Int + Bool Double’ has kind ‘* -> *’
• In the data instance declaration for ‘+’
}}}
Note the missing parens in the first line of the error.
Will fix shortly.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list