Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data type for all interactive responses
Synopsis
- data Response_boot tcErr tcWarning warningsAndNonFatalErrors
- = Resp_HighlightingInfo HighlightingInfo RemoveTokenBasedHighlighting HighlightingMethod ModuleToSource
- | Resp_Status Status
- | Resp_JumpToError FilePath Int32
- | Resp_InteractionPoints [InteractionId]
- | Resp_GiveAction InteractionId GiveResult
- | Resp_MakeCase InteractionId MakeCaseVariant [String]
- | Resp_SolveAll [(InteractionId, Expr)]
- | Resp_Mimer InteractionId (Maybe String)
- | Resp_DisplayInfo (DisplayInfo_boot tcErr tcWarning warningsAndNonFatalErrors)
- | Resp_RunningInfo Int String
- | Resp_ClearRunningInfo
- | Resp_ClearHighlighting TokenBased
- | Resp_DoneAborting
- | Resp_DoneExiting
- data RemoveTokenBasedHighlighting
- data MakeCaseVariant
- data DisplayInfo_boot tcErr tcWarning warningsAndNonFatalErrors
- = Info_CompilationOk CompilerBackend warningsAndNonFatalErrors
- | Info_Constraints [OutputForm_boot tcErr Expr Expr]
- | Info_AllGoalsWarnings (Goals_boot tcErr) warningsAndNonFatalErrors
- | Info_Time CPUTime
- | Info_Error (Info_Error_boot tcErr tcWarning)
- | Info_Intro_NotFound
- | Info_Intro_ConstructorUnknown [String]
- | Info_Auto String
- | Info_ModuleContents [Name] Telescope [(Name, Type)]
- | Info_SearchAbout [(Name, Type)] String
- | Info_WhyInScope WhyInScopeData
- | Info_NormalForm CommandState ComputeMode (Maybe CPUTime) Expr
- | Info_InferredType CommandState (Maybe CPUTime) Expr
- | Info_Context InteractionId [ResponseContextEntry]
- | Info_Version
- | Info_GoalSpecific InteractionId (GoalDisplayInfo_boot tcErr)
- data GoalDisplayInfo_boot tcErr
- type Goals_boot tcErr = ([OutputConstraint_boot tcErr Expr InteractionId], [OutputConstraint_boot tcErr Expr NamedMeta])
- data Info_Error_boot tcErr tcWarning
- data GoalTypeAux
- data ResponseContextEntry = ResponseContextEntry {}
- data Status = Status {}
- data GiveResult
Documentation
data Response_boot tcErr tcWarning warningsAndNonFatalErrors Source #
Responses for any interactive interface
Note that the response is given in pieces and incrementally, so the user can have timely response even during long computations.
Resp_HighlightingInfo HighlightingInfo RemoveTokenBasedHighlighting HighlightingMethod ModuleToSource | |
Resp_Status Status | |
Resp_JumpToError FilePath Int32 | |
Resp_InteractionPoints [InteractionId] | |
Resp_GiveAction InteractionId GiveResult | |
Resp_MakeCase InteractionId MakeCaseVariant [String] | Response is list of printed clauses. |
Resp_SolveAll [(InteractionId, Expr)] | Solution for one or more meta-variables. |
Resp_Mimer InteractionId (Maybe String) | |
Resp_DisplayInfo (DisplayInfo_boot tcErr tcWarning warningsAndNonFatalErrors) | |
Resp_RunningInfo Int String | The integer is the message's debug level. |
Resp_ClearRunningInfo | |
Resp_ClearHighlighting TokenBased | Clear highlighting of the given kind. |
Resp_DoneAborting | A command sent when an abort command has completed successfully. |
Resp_DoneExiting | A command sent when an exit command is about to be completed. |
data RemoveTokenBasedHighlighting Source #
Should token-based highlighting be removed in conjunction with the application of new highlighting (in order to reduce the risk of flicker)?
RemoveHighlighting | Yes, remove all token-based highlighting from the file. |
KeepHighlighting | No. |
data MakeCaseVariant Source #
There are two kinds of "make case" commands.
Instances
EncodeTCM MakeCaseVariant Source # | |
Defined in Agda.Interaction.JSONTop | |
ToJSON MakeCaseVariant Source # | |
Defined in Agda.Interaction.JSONTop toJSON :: MakeCaseVariant -> Value # toEncoding :: MakeCaseVariant -> Encoding # toJSONList :: [MakeCaseVariant] -> Value # toEncodingList :: [MakeCaseVariant] -> Encoding # omitField :: MakeCaseVariant -> Bool # |
data DisplayInfo_boot tcErr tcWarning warningsAndNonFatalErrors Source #
Info to display at the end of an interactive command
Info_CompilationOk CompilerBackend warningsAndNonFatalErrors | |
Info_Constraints [OutputForm_boot tcErr Expr Expr] | |
Info_AllGoalsWarnings (Goals_boot tcErr) warningsAndNonFatalErrors | |
Info_Time CPUTime | |
Info_Error (Info_Error_boot tcErr tcWarning) | When an error message is displayed this constructor should be used, if appropriate. |
Info_Intro_NotFound | |
Info_Intro_ConstructorUnknown [String] | |
Info_Auto String |
|
Info_ModuleContents [Name] Telescope [(Name, Type)] | |
Info_SearchAbout [(Name, Type)] String | |
Info_WhyInScope WhyInScopeData | |
Info_NormalForm CommandState ComputeMode (Maybe CPUTime) Expr | |
Info_InferredType CommandState (Maybe CPUTime) Expr | |
Info_Context InteractionId [ResponseContextEntry] | |
Info_Version | |
Info_GoalSpecific InteractionId (GoalDisplayInfo_boot tcErr) |
Instances
EncodeTCM DisplayInfo Source # | |
Defined in Agda.Interaction.JSONTop |
data GoalDisplayInfo_boot tcErr Source #
type Goals_boot tcErr = ([OutputConstraint_boot tcErr Expr InteractionId], [OutputConstraint_boot tcErr Expr NamedMeta]) Source #
Goals & Warnings
data Info_Error_boot tcErr tcWarning Source #
Errors that goes into Info_Error
When an error message is displayed this constructor should be used, if appropriate.
Info_GenericError tcErr | |
Info_CompilationError [tcWarning] | |
Info_HighlightingParseError InteractionId | |
Info_HighlightingScopeCheckError InteractionId |
Instances
EncodeTCM Info_Error Source # | |
Defined in Agda.Interaction.JSONTop |
data GoalTypeAux Source #
Auxiliary information that comes with Goal Type
Instances
EncodeTCM GoalTypeAux Source # | |
Defined in Agda.Interaction.JSONTop |
data ResponseContextEntry Source #
Entry in context.
ResponseContextEntry | |
|
Instances
EncodeTCM ResponseContextEntry Source # | |
Defined in Agda.Interaction.JSONTop |
Status information.
Status | |
|
data GiveResult Source #
Give action result
Comment derived from agda2-mode.el
If GiveResult
is 'Give_String s', then the goal is replaced by s
,
and otherwise the text inside the goal is retained (parenthesised
if GiveResult
is Give_Paren
).
Instances
EncodeTCM GiveResult Source # | |
Defined in Agda.Interaction.JSONTop | |
ToJSON GiveResult Source # | |
Defined in Agda.Interaction.JSONTop toJSON :: GiveResult -> Value # toEncoding :: GiveResult -> Encoding # toJSONList :: [GiveResult] -> Value # toEncodingList :: [GiveResult] -> Encoding # omitField :: GiveResult -> Bool # |