Add Applicative instance for STM
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
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |