feat(library/init/meta/tactic): add to_string instance
This commit is contained in:
parent
5a924699d0
commit
35acad642c
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ end tactic_state
|
|||
meta instance : has_to_format tactic_state :=
|
||||
⟨tactic_state.to_format⟩
|
||||
|
||||
meta instance : has_to_string tactic_state :=
|
||||
⟨λ s, (to_fmt s)^.to_string s^.get_options⟩
|
||||
|
||||
@[reducible] meta def tactic := interaction_monad tactic_state
|
||||
@[reducible] meta def tactic_result := interaction_monad.result tactic_state
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue