| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Effect.Internal.State
Synopsis
- data State s m a 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 m a where Source #
An effect for non-atomic stateful operations.
If you need atomicity, use AtomicState
instead.
Instances
newtype StateLazyC s m a Source #
Constructors
| StateLazyC | |
Fields
| |
Instances
class (forall s. Threads (StateT s) p) => StateLazyThreads p Source #
StateLazyThreads accepts the following primitive effects:
RegionalsOptionals(whensis a functor)BaseControlbListenPrims(whensis aMonoid)WriterPrims(whensis aMonoid)ReaderPrimiMaskBracketFixSplit
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:
RegionalsOptionals(whensis a functor)BaseControlbListenPrims(whensis aMonoid)WriterPrims(whensis aMonoid)ReaderPrimiMaskBracketFixSplit
Instances
| (forall s. Threads (StateT s) p) => StateThreads p Source # | |
Defined in Control.Effect.Internal.State | |