calamity-0.1.11.2: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Internal.RunIntoIO

Description

Something for converting polysemy actions into IO actions

Documentation

data IntoIO p r m a where Source #

Constructors

IntoIO :: (p -> m r) -> IntoIO p r m (p -> IO (Maybe r)) 

Instances

Instances details
type DefiningModule IntoIO Source # 
Instance details

Defined in Calamity.Internal.RunIntoIO

type DefiningModule IntoIO = "Calamity.Internal.RunIntoIO"

runIntoIOFinal :: forall r p b a. Member (Final IO) r => Sem (IntoIO p b ': r) a -> Sem r a Source #

intoIO :: forall p r r. MemberWithError (IntoIO p r) r => (p -> Sem r r) -> Sem r (p -> IO (Maybe r)) Source #

bindSemToIO :: forall r p a. Member (Final IO) r => (p -> Sem r a) -> Sem r (p -> IO (Maybe a)) Source #