
#11212: Should be more liberal parsing pattern synonyms with view patterns -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple PatternSynonyms | Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11212 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler