ModuleAgda-2.8.0.2Haskell2010
Agda.Interaction.InteractionTop
- 1 type
- 40 values
- PackageAgda-2.8.0.2
- Exports41
- LanguageHaskell2010
- LicenceMIT
- SourceInteractionTop.hs
Displays the current goal, the given document, and the current context.
Should not modify the state.
cmd_load' cmd_load' file argv unsolvedOk cmd
loads the module in file file,
using argv as the command-line options.
If type checking completes without any exceptions having been
encountered then the command cmd r is executed, where r is the
result of typeCheckMain.
Opposite of liftIO for CommandM.
This function should only be applied to computations that are guaranteed not to raise any errors (except for IOExceptions).
Displays or updates status information.
Does not change the state.
display_info does what does, but
additionally displays some status information (see status and
displayStatus).display_info' False
Interpret an interaction
give_gen :: UseForceShould safety checks be skipped?
-> InteractionId-> Range-> String-> GiveRefine-> CommandM ()
A "give"-like action (give, refine, etc).
give_gen force ii rng s give_ref mk_newtxt
acts on interaction point ii
occupying range rng,
placing the new content given by string s,
and replacing ii by the newly created interaction points
in the state if safety checks pass (unless force is applied).
Do setup and error handling for a command.
Can the command run even if the relevant file has not been loaded into the state?
Creates a command queue, and forks a thread that writes commands to the queue. The queue is returned.
Lift a TCM action transformer to a CommandM action transformer.
Ditto, but restore state.
If the next command from the command queue is anything but an actual command, then the command is returned.
If the command is an IOTCM command, then the following happens: The given computation is applied to the command and executed. If an abort command is encountered (and acted upon), then the computation is interrupted, the persistent state and all options are restored, and some commands are sent to the frontend. If the computation was not interrupted, then its result is returned.
A Lens for oldInteractionScopes.
A Lens for theInteractionPoints.
parseAndDoAtToplevel Parses and scope checks an expression (using the "inside scope" as the scope), performs the given command with the expression as input, and returns the result and the time it takes.
Put a response by the callback function given by stInteractionOutputCallback.
Shows all the top-level names in scope which mention all the given identifiers in their type.
Sets the command line options and updates the status information.
Shows all the top-level names in the given module, along with their types.
Solved goals already instantiated internally The second argument potentially limits it to one specific goal.
Sorts interaction points based on their ranges.
Computes some status information.
Does not change the state.
Tells the Emacs mode to go to the first error position (if any).
Tell to highlight the code using the given highlighting
info (unless it is Nothing).
Should Resp_InteractionPoints be issued after the command has run?
Explain why something is in scope.
Set envCurrentPath to theCurrentFile, if any.
Constructors
Instances2Eq, Show
Eq GiveRefineDefined in Agda-2.8.0.2 · Agda.Interaction.InteractionTopShow GiveRefineDefined in Agda-2.8.0.2 · Agda.Interaction.InteractionTop