HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleadjunctions-4.4.4Haskell2010

Control.Comonad.Representable.Store

This is a generalized Store Comonad, parameterized by a Representable Functor. The representation of that Functor serves as the index of the store.

This can be useful if the representable functor serves to memoize its contents and will be inspected often.

Synopsis
typetype Store (g :: Type -> Type) = StoreT g Identity

A memoized store comonad parameterized by a representable functor g, where the representatation of g, Rep g is the index of the store.

datadata StoreT (g :: Type -> Type) (w :: Type -> Type) a

A store transformer comonad parameterized by:

  • g - A representable functor used to memoize results for an index Rep g

  • w - The inner comonad.

Constructors

Instances12ComonadEnv, ComonadStore, ComonadTraced, ComonadCofree, ComonadTrans, ComonadHoist, …
classclass Comonad w => ComonadStore s (w :: Type -> Type) | w -> s where
#

Methods

Instances7ComonadStore, …