[GHC] #11992: RFC, add Suc to base
GHC
ghc-devs at haskell.org
Wed Apr 27 22:32:57 UTC 2016
#11992: RFC, add Suc to base
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: | Version: 8.1
libraries/base |
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:
-------------------------------------+-------------------------------------
{{{#!hs
hasSuc :: Int -> Maybe Int
hasSuc n = [ n - 1 | n > 0 ]
pattern Suc :: Int -> Int
pattern Suc n <- (hasSuc -> Just n)
where Suc n = n + 1
}}}
with a more general type
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11992>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list