Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Settings = Settings {
- botName :: !Text
- botToken :: !Text
- outputSize :: !Natural
- help :: Text
- helpMessages :: HashMap Text Text
- version :: Text
- interpretersSettings :: !InterpretersSettings
- data ExternalInterpreterSettings = ExternalInterpreterSettings {
- args :: !CmdArgs
- executable :: !Executable
- time :: !Time
- priority :: !Priority
- resources :: !ResourceSettings
- tempFilePrefix :: !FilePath
- fileExtension :: !FilePath
- inputSize :: !Natural
- data InternalInterpreterSettings = InternalInterpreterSettings {
- timeout :: !Natural
- allocations :: !Natural
- inputSize :: !Natural
- sourceFilePrefix :: !FilePath
- sourceFileExtension :: !FilePath
- data AgdaSettings = AgdaSettings {}
- data LeanSettings = LeanSettings {}
- data ArendSettings = ArendSettings {}
- newtype IdrisSettings = IdrisSettings ExternalInterpreterSettings
- newtype CmdArgs = CmdArgs [Text]
- newtype Packages = Packages Text
- newtype Executable = Executable Text
- newtype Time = Time Natural
- newtype Priority = Priority Natural
- data ResourceSettings = ResourceSettings {}
- data Limit = Limit {}
- data InterpretersSettings = InterpretersSettings {}
- loadSettings :: Text -> IO Settings
- loadDefaultSettings :: IO Settings
- class ToInterpreterState settings where
- getQueueSize :: settings -> Natural
Documentation
Settings | |
|
Instances
data ExternalInterpreterSettings Source #
ExternalInterpreterSettings | |
|
Instances
data InternalInterpreterSettings Source #
InternalInterpreterSettings | |
|
Instances
data AgdaSettings Source #
Instances
Generic AgdaSettings Source # | |
Defined in Proof.Assistant.Settings type Rep AgdaSettings :: Type -> Type # from :: AgdaSettings -> Rep AgdaSettings x # to :: Rep AgdaSettings x -> AgdaSettings # | |
FromDhall AgdaSettings Source # | |
Defined in Proof.Assistant.Settings autoWith :: InputNormalizer -> Decoder AgdaSettings | |
ToInterpreterState AgdaSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: AgdaSettings -> Natural Source # | |
Interpreter AgdaState AgdaSettings Source # | |
Defined in Proof.Assistant.Interpreter | |
type Rep AgdaSettings Source # | |
Defined in Proof.Assistant.Settings type Rep AgdaSettings = D1 ('MetaData "AgdaSettings" "Proof.Assistant.Settings" "proof-assistant-bot-0.2.0-inplace" 'False) (C1 ('MetaCons "AgdaSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "internal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InternalInterpreterSettings))) |
data LeanSettings Source #
LeanSettings | |
|
Instances
Generic LeanSettings Source # | |
Defined in Proof.Assistant.Settings type Rep LeanSettings :: Type -> Type # from :: LeanSettings -> Rep LeanSettings x # to :: Rep LeanSettings x -> LeanSettings # | |
FromDhall LeanSettings Source # | |
Defined in Proof.Assistant.Settings autoWith :: InputNormalizer -> Decoder LeanSettings | |
ToInterpreterState LeanSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: LeanSettings -> Natural Source # | |
Interpreter (InterpreterState LeanSettings) LeanSettings Source # | |
type Rep LeanSettings Source # | |
Defined in Proof.Assistant.Settings type Rep LeanSettings = D1 ('MetaData "LeanSettings" "Proof.Assistant.Settings" "proof-assistant-bot-0.2.0-inplace" 'False) (C1 ('MetaCons "LeanSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectDir") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "externalLean") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ExternalInterpreterSettings))) |
data ArendSettings Source #
ArendSettings | |
|
Instances
newtype IdrisSettings Source #
Instances
Generic IdrisSettings Source # | |
Defined in Proof.Assistant.Settings type Rep IdrisSettings :: Type -> Type # from :: IdrisSettings -> Rep IdrisSettings x # to :: Rep IdrisSettings x -> IdrisSettings # | |
FromDhall IdrisSettings Source # | |
Defined in Proof.Assistant.Settings autoWith :: InputNormalizer -> Decoder IdrisSettings | |
ToInterpreterState IdrisSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: IdrisSettings -> Natural Source # | |
Interpreter (InterpreterState IdrisSettings) IdrisSettings Source # | |
type Rep IdrisSettings Source # | |
Defined in Proof.Assistant.Settings type Rep IdrisSettings = D1 ('MetaData "IdrisSettings" "Proof.Assistant.Settings" "proof-assistant-bot-0.2.0-inplace" 'True) (C1 ('MetaCons "IdrisSettings" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExternalInterpreterSettings))) |
newtype Executable Source #
Instances
Generic Executable Source # | |
Defined in Proof.Assistant.Settings type Rep Executable :: Type -> Type # from :: Executable -> Rep Executable x # to :: Rep Executable x -> Executable # | |
FromDhall Executable Source # | |
Defined in Proof.Assistant.Settings autoWith :: InputNormalizer -> Decoder Executable | |
type Rep Executable Source # | |
Defined in Proof.Assistant.Settings type Rep Executable = D1 ('MetaData "Executable" "Proof.Assistant.Settings" "proof-assistant-bot-0.2.0-inplace" 'True) (C1 ('MetaCons "Executable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data ResourceSettings Source #
Resource settings.
Instances
Limits.
Instances
Generic Limit Source # | |
FromDhall Limit Source # | |
Defined in Proof.Assistant.Settings | |
type Rep Limit Source # | |
Defined in Proof.Assistant.Settings type Rep Limit = D1 ('MetaData "Limit" "Proof.Assistant.Settings" "proof-assistant-bot-0.2.0-inplace" 'False) (C1 ('MetaCons "Limit" 'PrefixI 'True) (S1 ('MetaSel ('Just "soft") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "hard") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural))) |
data InterpretersSettings Source #
Combination of all supported interpreters settings.
InterpretersSettings | |
|
Instances
loadDefaultSettings :: IO Settings Source #
Load default settings.
class ToInterpreterState settings where Source #
Helper to get queue size (communication model between bot and backend worker).
getQueueSize :: settings -> Natural Source #
Instances
ToInterpreterState IdrisSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: IdrisSettings -> Natural Source # | |
ToInterpreterState ArendSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: ArendSettings -> Natural Source # | |
ToInterpreterState LeanSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: LeanSettings -> Natural Source # | |
ToInterpreterState AgdaSettings Source # | |
Defined in Proof.Assistant.Settings getQueueSize :: AgdaSettings -> Natural Source # | |
ToInterpreterState InternalInterpreterSettings Source # | |
Defined in Proof.Assistant.Settings | |
ToInterpreterState ExternalInterpreterSettings Source # | |
Defined in Proof.Assistant.Settings |