pprFamInstLHS drops parentheses
If I say
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.6.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |