Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AgdaCommand
- supportedCommands :: HashMap ByteString AgdaCommand
- matchSupported :: ByteString -> Maybe AgdaCommand
- chooseCommand :: AgdaState -> Either () AgdaCommand -> ByteString -> IO (TCM ByteString)
- storeRequestContent :: AbsolutePath -> ByteString -> IO ()
Documentation
data AgdaCommand Source #
Supported sub-commands for Agda.
Instances
supportedCommands :: HashMap ByteString AgdaCommand Source #
Map of supported Agda sub-commands. We use it instead of parser.
matchSupported :: ByteString -> Maybe AgdaCommand Source #
Check user input to identify AgdaCommand
.
chooseCommand :: AgdaState -> Either () AgdaCommand -> ByteString -> IO (TCM ByteString) Source #
Choose an action based on either AgdaCommand
or raw input.
storeRequestContent :: AbsolutePath -> ByteString -> IO () Source #
Store raw user input in the file given by TCEnv
.