Safe Haskell | Trustworthy |
---|---|
Language | Haskell98 |
Synopsis
- data UnexpectedEOF = UnexpectedEOF
- data Haskeline a
- haskeline :: Wizard Haskeline a -> Wizard Haskeline a
- withSettings :: WithSettings :<: b => Settings IO -> Wizard b a -> Wizard b a
- data WithSettings w = WithSettings (Settings IO) w
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
.
Instances
Show UnexpectedEOF Source # | |
Defined in System.Console.Wizard.Haskeline showsPrec :: Int -> UnexpectedEOF -> ShowS # show :: UnexpectedEOF -> String # showList :: [UnexpectedEOF] -> ShowS # | |
Exception UnexpectedEOF Source # | |
Defined in System.Console.Wizard.Haskeline |
Haskeline supports all the following features completely.
Instances
Functor Haskeline Source # | |
ArbitraryIO :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline inj :: ArbitraryIO a -> Haskeline a | |
Password :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline | |
LinePrewritten :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline inj :: LinePrewritten a -> Haskeline a | |
Character :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline | |
Line :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline | |
OutputLn :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline | |
Output :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline | |
WithSettings :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline inj :: WithSettings a -> Haskeline a | |
Run (InputT IO) Haskeline Source # | |
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 #
WithSettings (Settings IO) w |
Instances
Functor WithSettings Source # | |
Defined in System.Console.Wizard.Haskeline fmap :: (a -> b) -> WithSettings a -> WithSettings b # (<$) :: a -> WithSettings b -> WithSettings a # | |
WithSettings :<: Haskeline Source # | |
Defined in System.Console.Wizard.Haskeline inj :: WithSettings a -> Haskeline a | |
Run (InputT IO) WithSettings Source # | |
Defined in System.Console.Wizard.Haskeline runAlgebra :: WithSettings (InputT IO v) -> InputT IO v Source # |
Orphan instances
Run (InputT IO) ArbitraryIO Source # | |
runAlgebra :: ArbitraryIO (InputT IO v) -> InputT IO v Source # | |
Run (InputT IO) Password Source # | |
Run (InputT IO) LinePrewritten Source # | |
runAlgebra :: LinePrewritten (InputT IO v) -> InputT IO v Source # | |
Run (InputT IO) Character Source # | |
Run (InputT IO) Line Source # | |
Run (InputT IO) OutputLn Source # | |
Run (InputT IO) Output Source # | |