curly-0.59.4.2: A minimal cross-compiler for the simply-typed lambda-calculus

Safe HaskellNone
LanguageHaskell2010

Curly.Session.Commands

Contents

Synopsis

Sessions

withSessionState :: (?curlyPlex :: CurlyPlex, MonadIO m) => ((?sessionState :: IORef SessionState) => m a) -> m a Source #

withStyle :: (?sessionState :: IORef SessionState, MonadIO m) => ((?style :: Style) => m a) -> m a Source #

getSession :: (?sessionState :: IORef SessionState, MonadIO m) => Lens' SessionState a -> m a Source #

Commands

data KeyOps Source #

Constructors

KeyOps 

type Interactive t = (?sessionState :: IORef SessionState, ?targetParams :: TargetParams, ?curlyPlex :: CurlyPlex, ?curlyConfig :: CurlyConfig, ?serve :: Bytes -> IO (), ?edit :: String -> (Int, Int) -> Bytes -> IO (Maybe Bytes), ?killServer :: IO (), ?quitSession :: IO (), ?access :: Access, ?subSession :: CurlyConfig -> OpParser IO (), ?clientOps :: KeyOps, ?terminal :: ANSITerm) => t Source #

Parsers

Utilities

colorNames :: Map String String Source #

A list of colors gotten from 'http://www.color-hex.com/color-names.html'

serveStrLn :: (?sessionState :: IORef SessionState, ?serve :: Bytes -> IO (), MonadIO m) => String -> m () Source #

serveString :: (?sessionState :: IORef SessionState, ?serve :: Bytes -> IO (), MonadIO m) => String -> m () Source #