Fwd: [GHC] #1960: Add Applicative and Monoid instances for STM

Conal Elliott conal at conal.net
Sat Dec 8 12:36:19 EST 2007


Is STM part of the libraries at haskell.org charter?

---------- Forwarded message ----------
From: GHC <trac at galois.com>
Date: Dec 5, 2007 2:57 PM
Subject: [GHC] #1960: Add Applicative and Monoid instances for STM
To:
Cc: glasgow-haskell-bugs at haskell.org


#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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20071208/ee6b88a1/attachment.htm


More information about the Libraries mailing list