chiasma-0.2.0.0: tmux api
Safe HaskellNone
LanguageHaskell2010

Chiasma.Api.Class

Documentation

class TmuxApi m a where Source #

Methods

runCommands :: a -> (Text -> Either TmuxDecodeError b) -> Cmds -> m [b] Source #

withTmux :: a -> (ConduitT (Flush Cmd) Void m () -> ConduitT () TmuxOutputBlock m () -> m b) -> m b Source #

Instances

Instances details
(MonadIO m, MonadDeepError e TmuxError m, MonadMask m) => TmuxApi m TmuxNative Source # 
Instance details

Defined in Chiasma.Native.Api

Methods

runCommands :: TmuxNative -> (Text -> Either TmuxDecodeError b) -> Cmds -> m [b] Source #

withTmux :: TmuxNative -> (ConduitT (Flush Cmd) Void m () -> ConduitT () TmuxOutputBlock m () -> m b) -> m b Source #