Skip to content

Add Applicative and Monoid instances for STM

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.

Trac metadata
Trac field Value
Version 6.8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC conal@conal.net
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information