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

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

Modulehnix-0.17.0Haskell2010

Nix.Thunk

  • 1 type
  • 3 classes
  • 1 value
  • Packagehnix-0.17.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceThunk.hs

class MonadThunkId & instances

1 declaration
classclass (Monad m, Eq (ThunkId m), Ord (ThunkId m), Show (ThunkId m), Typeable (ThunkId m)) => MonadThunkId (m :: Type -> Type) where
#

Associated types

Methods

Instances7MonadThunkId, …

Instances

class MonadThunk

1 declaration
classclass MonadThunkId m => MonadThunk t (m :: Type -> Type) a | t -> m, t -> a where
#

Methods

  • thunkId :: t -> ThunkId m

    Return thunk ID.

  • thunk :: m a -> m t

    Create new thunk

  • query :: m a -> t -> m a

    Non-blocking query. If thunk got computed then return its value otherwise return default value (1st arg).

  • force :: t -> m a
  • forceEff :: t -> m a
  • further :: t -> m t

    Modify the action to be performed by the thunk. For some implicits this modifies the thunk, for others it may create a new thunk.

Instances3MonadThunk

class MonadThunk

1 declaration
classclass MonadThunkF t (m :: Type -> Type) a | t -> m, t -> a where
#

Class of Kleisli functors for easiness of customized implementation developlemnt.

Methods

Instances3MonadThunkF

newtype ThunkLoop

1 declaration

Utils

1 declaration