wizards-1.0.3: High level, generic library for interrogative user interfaces
Safe HaskellTrustworthy
LanguageHaskell98

System.Console.Wizard.Pure

Synopsis

Documentation

data Pure a #

The Pure backend supports only simple input and output. Support for Password and LinePrewritten features can be added with a shim from System.Console.Wizard.Shim.

Instances

Instances details
Functor Pure # 
Instance details

Defined in System.Console.Wizard.Pure

Methods

fmap :: (a -> b) -> Pure a -> Pure b #

(<$) :: a -> Pure b -> Pure a #

Character :<: Pure # 
Instance details

Defined in System.Console.Wizard.Pure

Methods

inj :: Character a -> Pure a

Line :<: Pure # 
Instance details

Defined in System.Console.Wizard.Pure

Methods

inj :: Line a -> Pure a

Output :<: Pure # 
Instance details

Defined in System.Console.Wizard.Pure

Methods

inj :: Output a -> Pure a

OutputLn :<: Pure # 
Instance details

Defined in System.Console.Wizard.Pure

Methods

inj :: OutputLn a -> Pure a

Run (State PureState) Pure # 
Instance details

Defined in System.Console.Wizard.Pure

data UnexpectedEOI #

Thrown if the wizard ever unexpectedly runs out of input.

Constructors

UnexpectedEOI 

runPure :: Wizard Pure a -> String -> (Maybe a, String) #

Run a wizard in the Pure backend

type PureState = ([String], Seq Char) #

The pure backend is actually just a simple state monad, with the following state.

Orphan instances

Run (State PureState) Character # 
Instance details

Run (State PureState) Line # 
Instance details

Run (State PureState) Output # 
Instance details

Run (State PureState) OutputLn # 
Instance details