Ticket #1960 (closed proposal: wontfix)
Add Applicative and Monoid instances for STM
| Reported by: | conal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Not GHC |
| Component: | libraries/base | Version: | 6.8.1 |
| Keywords: | Cc: | conal@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
