polysemy-scoped-fs-0.1.0.0: Well-typed filesystem operation effects.
LicenseSee the header comment of the source file of this module.
Maintainerhisaket@outlook.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Polysemy.Scoped.Path.Internal

Description

 
Synopsis

Documentation

bundle :: Sem es a -> Sem (Bundle es ': r) a Source #

Bundle all effects of Sem into a single Bundle.

subsumeBundle_id :: Sem (Bundle r ': r) a -> Sem r a Source #

subsumeBundleUsing :: (forall e. ElemOf e es -> ElemOf e r) -> Sem (Bundle es ': r) a -> Sem r a Source #

unbundle :: Bundle '[e] m a -> e m a Source #

weakenBundle :: (Members es r, KnownList es) => Bundle es m a -> Bundle r m a Source #

weakenMembership :: (Members es r, KnownList es) => ElemOf e es -> ElemOf e r Source #

weakenMembership' :: Members es r => SList es -> ElemOf e es -> ElemOf e r Source #

data ScopedP path resource effect m a where Source #

Constructors

Run :: forall path resource effect m a. resource -> effect m a -> ScopedP path resource effect m a 
InScope :: forall path resource effect m a. path -> (resource -> m a) -> ScopedP path resource effect m a 

interpretH' :: (forall x. Weaving e (Sem (e ': r)) x -> Sem r x) -> InterpreterFor e r Source #