Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Interpreters = Interpreters {
- agda :: !AgdaState
- arend :: !(InterpreterState ArendSettings)
- idris :: !(InterpreterState IdrisSettings)
- coq :: !ExternalState
- lean :: !(InterpreterState LeanSettings)
- rzk :: !InternalState
- newInterpreters :: InterpretersSettings -> IO Interpreters
- type ExternalState = InterpreterState ExternalInterpreterSettings
- type InternalState = InterpreterState InternalInterpreterSettings
- data BotState = BotState {}
- newBotState :: Settings -> IO BotState
- readInput :: InterpreterState settings -> IO InterpreterRequest
- readOutput :: BotState -> IO InterpreterResponse
- writeInput :: InterpreterRequest -> InterpreterState settings -> IO ()
- writeOutput :: InterpreterResponse -> BotState -> IO ()
Documentation
data Interpreters Source #
Combination of all supported backend interpreters.
Interpreters | |
|
newInterpreters :: InterpretersSettings -> IO Interpreters Source #
Initiate new interpreters from settings.
Bot has its own state.
BotState | |
|
readInput :: InterpreterState settings -> IO InterpreterRequest Source #
Read message from "input" queue.
readOutput :: BotState -> IO InterpreterResponse Source #
Read message from "output" queue.
writeInput :: InterpreterRequest -> InterpreterState settings -> IO () Source #
Write message to "input" queue.
writeOutput :: InterpreterResponse -> BotState -> IO () Source #
Write message to "output" queue.