Agda-2.4.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone

Agda.Interaction.CommandLine.CommandLine

Synopsis

Documentation

data ExitCode a Source

Constructors

Continue 
ContinueIn TCEnv 
Return a 

type Command a = (String, [String] -> TCM (ExitCode a))Source

matchCommand :: String -> [Command a] -> Either [String] ([String] -> TCM (ExitCode a))Source

interaction :: String -> [Command a] -> (String -> TCM (ExitCode a)) -> IM aSource

interactionLoop :: TCM (Maybe Interface) -> IM ()Source

The interaction loop.

loadFile :: TCM () -> [String] -> TCM ()Source

showConstraints :: [String] -> TCM ()Source

showMetas :: [String] -> TCM ()Source

actOnMeta :: [String] -> (InteractionId -> Expr -> TCM a) -> TCM aSource

giveMeta :: [String] -> TCM ()Source

refineMeta :: [String] -> TCM ()Source

evalIn :: [String] -> TCM ()Source

parseExpr :: String -> TCM ExprSource

evalTerm :: String -> TCM (ExitCode a)Source

typeOf :: [String] -> TCM ()Source

typeIn :: [String] -> TCM ()Source

showContext :: [String] -> TCM ()Source

splashScreen :: StringSource

The logo that prints when Agda is started in interactive mode.

help :: [Command a] -> IO ()Source

The help message