HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Moduleacid-state-0.16.1.4Haskell2010

Data.Acid.Common

Common structures used by the various backends (local, memory).

  • 5 types
  • 3 classes
  • 2 values
  • Packageacid-state-0.16.1.4
  • Exports10
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceCommon.hs
newtypenewtype Update st a
#

Context monad for Update events.

Constructors

Instances4MonadState, Monad, Functor, Applicative
newtypenewtype Query st a
#

Context monad for Query events.

Constructors

Instances4MonadReader, Monad, Functor, Applicative
  • MonadReader st (Query st)Defined in acid-state-0.16.1.4 · Data.Acid.Common
  • Monad (Query st)Defined in acid-state-0.16.1.4 · Data.Acid.Common
  • Functor (Query st)Defined in acid-state-0.16.1.4 · Data.Acid.Common
  • Applicative (Query st)Defined in acid-state-0.16.1.4 · Data.Acid.Common
datadata Event st where
#

We distinguish between events that modify the state and those that do not.

UpdateEvents are executed in a MonadState context and have to be serialized to disk before they are considered durable.

QueryEvents are executed in a MonadReader context and obviously do not have to be serialized to disk.

Constructors