ddc-driver-0.4.3.1: Disciplined Disciple Compiler top-level driver.

Safe HaskellSafe
LanguageHaskell98

DDC.Driver.Interface.Input

Synopsis

Documentation

data InputInterface Source #

What interface is being used.

Constructors

InputInterfaceArgs

Read commands from unix command-line args.

InputInterfaceConsole

Read commands interactively from the console.

InputInterfaceBatch FilePath

Read commands from the file with this name.

data InputState command Source #

Constructors

InputState 

data Input Source #

How we're reading the current expression.

Constructors

InputLine

Read input line-by-line, using a backslash at the end of the line to continue to the next.

InputBlock

Read input as a block terminated by a double semicolon (;;)

InputFile FilePath

Read input from a file specified on the prompt

Instances

Eq Input Source # 

Methods

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

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

Show Input Source # 

Methods

showsPrec :: Int -> Input -> ShowS #

show :: Input -> String #

showList :: [Input] -> ShowS #

readInput :: String -> (Input, String) Source #

Read the input mode from the front of a string.