ajhc-0.8.0.8: Haskell compiler that produce binary through C language

Safe HaskellNone

Util.Interact

Synopsis

Documentation

data Interact Source

Constructors

Interact 

Fields

interactPrompt :: String

the prompt to use

interactCommands :: [InteractCommand]

a list of commands

interactSettables :: [String]

possible things that may be set

interactVersion :: String

version string to print

interactSet :: Map String String

vars that are actually set

interactExpr :: Interact -> String -> IO Interact

what to run on a bare expression

interactRC :: [String]

commands to run at startup

interactWords :: [String]

list of words to autocomplete

interactEcho :: Bool

whether to echo commands

interactCommandMode :: Bool

whether we are in command mode

interactHistFile :: Maybe String

filename to store history of commands in

interactComment :: Maybe String

comment initializer

beginInteraction :: Interact -> IO ()Source

begin interactive interaction

runInteraction :: Interact -> String -> IO InteractSource

run a command as if typed at prompt