Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- auto :: MonadTCM tcm => InteractionId -> Range -> String -> tcm AutoResult
- data AutoResult = AutoResult {}
- data AutoProgress
- = Solutions [(InteractionId, String)]
- | FunClauses [String]
- | Refinement String
Documentation
auto :: MonadTCM tcm => InteractionId -> Range -> String -> tcm AutoResult Source #
Entry point for Auto tactic (Agsy).
If the autoMessage
part of the result is set to Just msg
, the
message msg
produced by Agsy should be displayed to the user.
data AutoProgress Source #
Result type: Progress & potential Message for the user
The of the Auto tactic can be one of the following three:
Solutions [(ii,s)]
A list of solutionss
for interaction idsii
. In particular,Solutions []
means Agsy found no solution.FunClauses cs
A list of clauses for the interaction idii
in which Auto was invoked with case-splitting turned on.Refinement s
A refinement for the interaction idii
in which Auto was invoked.