Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Readline (m :: Type -> Type) (k :: Type) where
- prompt :: Has Readline sig m => String -> m (Int, Maybe String)
- print :: Has Readline sig m => Doc AnsiStyle -> m ()
- class Monad m => Algebra (sig :: (Type -> Type) -> Type -> Type) (m :: Type -> Type) | m -> sig
- type Has (eff :: (Type -> Type) -> Type -> Type) (sig :: (Type -> Type) -> Type -> Type) (m :: Type -> Type) = (Members eff sig, Algebra sig m)
- run :: Identity a -> a
Readline effect
Re-exports
class Monad m => Algebra (sig :: (Type -> Type) -> Type -> Type) (m :: Type -> Type) | m -> sig #
alg
Instances
Algebra Empty Maybe | |
Algebra NonDet [] | |
Defined in Control.Algebra | |
Algebra Choose NonEmpty | |
(MonadIO m, MonadMask m) => Algebra Readline (ReadlineC m) Source # | |
Algebra sig m => Algebra sig (IdentityT m) | |
Algebra sig m => Algebra sig (Ap m) | |
Algebra sig m => Algebra sig (Alt m) | |
Algebra (Lift IO) IO | |
Algebra (Lift Identity) Identity | |
Algebra (Error e) (Either e) | |
Monoid w => Algebra (Writer w) ((,) w) | |
Monad m => Algebra (Lift m) (LiftC m) | |
Defined in Control.Carrier.Lift | |
Algebra (Reader r) ((->) r :: Type -> Type) | |
Defined in Control.Algebra | |
Algebra sig m => Algebra (Empty :+: sig) (MaybeT m) | |
Algebra sig m => Algebra (Error e :+: sig) (ExceptT e m) | |
Algebra sig m => Algebra (Reader r :+: sig) (ReaderT r m) | |
Algebra sig m => Algebra (Reader r :+: sig) (ReaderC r m) | |
Defined in Control.Carrier.Reader | |
(Algebra sig m, Monoid w) => Algebra (Writer w :+: sig) (WriterT w m) | |
(Algebra sig m, Monoid w) => Algebra (Writer w :+: sig) (WriterT w m) | |
(Algebra sig m, Monoid w) => Algebra (Writer w :+: sig) (WriterT w m) | |
Algebra sig m => Algebra (State s :+: sig) (StateT s m) | |
Algebra sig m => Algebra (State s :+: sig) (StateT s m) | |
(Algebra sig m, Monoid w) => Algebra (Reader r :+: (Writer w :+: (State s :+: sig))) (RWST r w s m) | |
(Algebra sig m, Monoid w) => Algebra (Reader r :+: (Writer w :+: (State s :+: sig))) (RWST r w s m) | |
(Algebra sig m, Monoid w) => Algebra (Reader r :+: (Writer w :+: (State s :+: sig))) (RWST r w s m) | |