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

Safe HaskellTrustworthy
LanguageHaskell98

System.Console.Wizard.Haskeline

Contents

Synopsis

Documentation

data UnexpectedEOF Source #

The Haskeline back-end will throw this exception if EOF is encountered when it is not expected. Specifically, when actions such as getInputLine return Nothing.

Constructors

UnexpectedEOF 

data Haskeline a Source #

Haskeline supports all the following features completely.

Instances
Functor Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

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

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

ArbitraryIO :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: ArbitraryIO a -> Haskeline a

Password :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: Password a -> Haskeline a

LinePrewritten :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: LinePrewritten a -> Haskeline a

Character :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: Character a -> Haskeline a

Line :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: Line a -> Haskeline a

OutputLn :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: OutputLn a -> Haskeline a

Output :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: Output a -> Haskeline a

WithSettings :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: WithSettings a -> Haskeline a

Run (InputT IO) Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

haskeline :: Wizard Haskeline a -> Wizard Haskeline a Source #

A simple identity function, used to restrict types if the type inferred by GHC is too general. You could achieve the same effect with a type signature, but this is slightly less typing.

withSettings :: WithSettings :<: b => Settings IO -> Wizard b a -> Wizard b a Source #

Modifies a wizard so that it will run with different Haskeline Settings to the top level input monad.

data WithSettings w Source #

Constructors

WithSettings (Settings IO) w 
Instances
Functor WithSettings Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

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

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

WithSettings :<: Haskeline Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Methods

inj :: WithSettings a -> Haskeline a

Run (InputT IO) WithSettings Source # 
Instance details

Defined in System.Console.Wizard.Haskeline

Orphan instances

Run (InputT IO) ArbitraryIO Source # 
Instance details

Run (InputT IO) Password Source # 
Instance details

Run (InputT IO) LinePrewritten Source # 
Instance details

Run (InputT IO) Character Source # 
Instance details

Run (InputT IO) Line Source # 
Instance details

Methods

runAlgebra :: Line (InputT IO v) -> InputT IO v Source #

Run (InputT IO) OutputLn Source # 
Instance details

Run (InputT IO) Output Source # 
Instance details

Methods

runAlgebra :: Output (InputT IO v) -> InputT IO v Source #