See Strategic.
Constructors
GetInitialState :: Strategy m f n z (f ())HoistInterpretation :: (a1 -> n b) -> Strategy m f n z (f a1 -> m (f b))GetInspector :: Strategy m f n z (Inspector f)
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulepolysemy-1.9.2.0Haskell2010
See Strategic.
GetInitialState :: Strategy m f n z (f ())HoistInterpretation :: (a1 -> n b) -> Strategy m f n z (f a1 -> m (f b))GetInspector :: Strategy m f n z (Inspector f)type WithStrategy (m :: Type -> Type) (f :: Type -> Type) (n :: Type -> Type) = '[Strategy m f n]Internal function to process Strategies in terms of withWeavingToFinal.
Get a natural transformation capable of potentially inspecting values
inside of f. Binding the result of getInspectorS produces a function that
can sometimes peek inside values returned by bindS.
This is often useful for running callback functions that are not managed by polysemy code.
See also getInspectorT
Embed a value into Strategic.
Lifts a monadic action into the stateful environment, in terms
of the final monad.
The stateful environment will be the same as the one that the Strategy
is initially run in.
Use bindS if you'd prefer to explicitly manage your stateful environment.