#4076: Add Applicative instance for STM
---------------------------------+------------------------------------------
    Reporter:  basvandijk        |       Owner:                
        Type:  proposal          |      Status:  new           
    Priority:  normal            |   Component:  libraries/base
     Version:  6.12.2            |    Keywords:                
          Os:  Unknown/Multiple  |    Testcase:                
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown  
---------------------------------+------------------------------------------
 I propose adding an `Applicative` instance for `STM`.

 The first attached patch adds an `Applicative` instance for `STM` to
 `base/GHC/Cons.lhs`.

 Note I had to create a `base/Control/Applicative.hs-boot` file and import
 `Applicative` using `{-# SOURCE #-}` because I got a "Module imports form
 a cycle for modules" error.

 The second attached patch adds an `Applicative` instance for the
 sequential `STM` to: `stm/Control/Sequential/STM.hs`

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4076>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to