[GHC] #1960: Add Applicative and Monoid instances for STM
GHC
trac at galois.com
Wed Dec 5 17:57:15 EST 2007
#1960: Add Applicative and Monoid instances for STM
-------------------------------+--------------------------------------------
Reporter: conal | Owner:
Type: proposal | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.8.1
Severity: normal | Keywords:
Difficulty: Easy (1 hr) | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------------+--------------------------------------------
{{{
instance Applicative STM where { pure = return; (<*>) = ap }
instance Monoid (STM a) where { mempty = retry; mappend = orElse }
}}}
I don't know where these instances would go. Nor whether this is a
libraries or GHC proposal.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1960>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list