module Effectful.FileSystem.Effect
(
FileSystem
, runFileSystem
) where
import Effectful
import Effectful.Dispatch.Static
data FileSystem :: Effect
type instance DispatchOf FileSystem = Static WithSideEffects
data instance StaticRep FileSystem = FileSystem
runFileSystem :: (HasCallStack, IOE :> es) => Eff (FileSystem : es) a -> Eff es a
runFileSystem :: forall (es :: [Effect]) a.
(HasCallStack, IOE :> es) =>
Eff (FileSystem : es) a -> Eff es a
runFileSystem = StaticRep FileSystem -> Eff (FileSystem : es) a -> Eff es a
forall (e :: Effect) (sideEffects :: SideEffects) (es :: [Effect])
a.
(HasCallStack, DispatchOf e ~ 'Static sideEffects,
MaybeIOE sideEffects es) =>
StaticRep e -> Eff (e : es) a -> Eff es a
evalStaticRep StaticRep FileSystem
FileSystem