
#11993: RFC, allow local bindings in pattern synonyms -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 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: -------------------------------------+------------------------------------- Code from #11992, allow users to write something like {{{#!hs pattern Suc :: Int -> Int pattern Suc n <- (hasSuc -> Just n) where Suc n = n + 1 hasSuc :: Int -> Maybe Int hasSuc n = [ n - 1 | n > 0 ] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11993 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler