Should be more liberal parsing pattern synonyms with view patterns
Redundant parentheses are required around a view pattern if it is used on the RHS of a pattern synonym definition. I think that parsing should be relaxed to allow the first definition.
-- Fails to parse, bug?
pattern IsTrue :: Show a => a
pattern IsTrue <- (== "True") . show -> True
-- Parses
pattern IsTrue :: Show a => a
pattern IsTrue <- ((== "True") . show -> True)
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |