Put a response by the callback function given by stInteractionOutputCallback.
ModuleAgda-2.7.0.1Haskell2010
Agda.Interaction.InteractionTop
- 2 types
- 43 values
- PackageAgda-2.7.0.1
- Exports45
- LanguageHaskell2010
- LicenceMIT
- SourceInteractionTop.hs
Restore both TCState and CommandState.
Computes some status information.
Does not change the state.
Explain why something is in scope.
Creates a command queue, and forks a thread that writes commands to the queue. The queue is returned.
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.
Set envCurrentPath to theCurrentFile, if any.
Constructors
Instances2Eq, Show
Eq GiveRefineDefined in Agda-2.7.0.1 · Agda.Interaction.InteractionTopShow GiveRefineDefined in Agda-2.7.0.1 · Agda.Interaction.InteractionTop
Restore TCState, do not touch CommandState.
revLift :: MonadState st m=> (forall c. m c -> st -> k (c, st))run
-> (forall b. k b -> m b)lift
-> (forall x. (m a -> k x) -> k x)-> m areverse lift in double negative position
Build an opposite action to lift for state monads.
revLiftTC :: MonadTCState m=> (forall c. m c -> TCState -> k (c, TCState))run
-> (forall b. k b -> m b)lift
-> (forall x. (m a -> k x) -> k x)-> m areverse lift in double negative position
Opposite of liftIO for CommandM.
This function should only be applied to computations that are guaranteed not to raise any errors (except for IOExceptions).
Lift a TCM action transformer to a CommandM action transformer.
Ditto, but restore state.
A Lens for theInteractionPoints.
A Lens for oldInteractionScopes.
Do setup and error handling for a command.
Tells the Emacs mode to go to the first error position (if any).
Can the command run even if the relevant file has not been loaded into 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.
Interpret an interaction
Should Resp_InteractionPoints be issued after the command has run?
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
Shows all the top-level names in the given module, along with their types.
Shows all the top-level names in scope which mention all the given identifiers in their type.
Solved goals already instantiated internally The second argument potentially limits it to one specific goal.
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.
Sets the command line options and updates the status information.
Tell to highlight the code using the given highlighting
info (unless it is Nothing).
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).
Displays the current goal, the given document, and the current context.
Should not modify the state.
Sorts interaction points based on their ranges.