Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data State s :: Effect where
- newtype StateC s m a = StateC {}
- newtype StateLazyC s m a = StateLazyC {
- unStateLazyC :: StateT s m a
- class (forall s. Threads (StateT s) p) => StateLazyThreads p
- class (forall s. Threads (StateT s) p) => StateThreads p
Documentation
data State s :: Effect where Source #
An effect for non-atomic stateful operations.
If you need atomicity, use AtomicState
instead.
Instances
newtype StateLazyC s m a Source #
StateLazyC | |
|
Instances
class (forall s. Threads (StateT s) p) => StateLazyThreads p Source #
StateLazyThreads
accepts the following primitive effects:
Regional
s
Optional
s
(whens
is a functor)BaseControl
b
ListenPrim
o
(wheno
is aMonoid
)WriterPrim
o
(wheno
is aMonoid
)ReaderPrim
i
Mask
Bracket
Fix
Split
Instances
(forall s. Threads (StateT s) p) => StateLazyThreads p Source # | |
Defined in Control.Effect.Internal.State |
class (forall s. Threads (StateT s) p) => StateThreads p Source #
StateThreads
accepts the following primitive effects:
Regional
s
Optional
s
(whens
is a functor)BaseControl
b
ListenPrim
o
(wheno
is aMonoid
)WriterPrim
o
(wheno
is aMonoid
)ReaderPrim
i
Mask
Bracket
Fix
Split
Instances
(forall s. Threads (StateT s) p) => StateThreads p Source # | |
Defined in Control.Effect.Internal.State |