napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Cli.Interactive.Utils

Documentation

data Command #

Constructors

Reload 
Quit 

Instances

Instances details
Bounded Command # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

Enum Command # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

Show Command # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

Eq Command # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

data LiveMode #

Constructors

ClearScreen 
Rolling 

Instances

Instances details
Show LiveMode # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

Eq LiveMode # 
Instance details

Defined in Napkin.Cli.Interactive.Utils

reload :: MonadIO m => MVar Command -> b -> m () #

report :: Color -> LiveMode -> Text -> Text -> IO () #

reportError :: LiveMode -> Text -> Text -> IO () #

changeTitle :: Text -> IO () #

colored :: Color -> Text -> IO () #

setSuccess :: LiveMode -> Text -> Text -> IO () #

setFailure :: Text -> IO b -> IO b #

clear :: LiveMode -> IO () #