Skip to main content

DA.Action.State

DA.Action.State

Module Snapshot

Lifecycle

Stable.

Notices

Status: active Introduced in: 3.4.9 Removed in: - Warnings: 0 Deprecations: 0 Deprecated since: -

Data Types

data State s a

Constructors:
  • State | Field | Type | Description | | :---- | :--- | :---------- | | runState | s -> (a, s) | |
Instances:
  • instance ActionState s (State s)
  • instance Action (State s)
  • instance Applicative (State s)
  • instance GetField runState (State s a) (s -> (a, s))
  • instance SetField runState (State s a) (s -> (a, s))
  • instance Functor (State s)

Functions

evalState

Special case of runState that does not return the final state.

execState

Special case of runState that does only retun the final state.

Orphan Typeclass Instances

  • instance Functor (State s)
  • instance Applicative (State s)
  • instance Action (State s)
  • instance ActionState s (State s)