-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#7105 Do not try to fold let-bindings during printing of the helper f…
…unction
- Loading branch information
1 parent
cf08b9d
commit c0ceac7
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
open import Agda.Primitive renaming (Set to Type) | ||
open import Agda.Builtin.Sigma | ||
|
||
postulate | ||
ℕ : Type | ||
|
||
data T (n : ℕ) : Type where | ||
conv : ∀ m → T m → T n | ||
|
||
test : ∀ n → T n → Σ ℕ T | ||
test n (conv m t) = let n' , t' = test m t in {!helper t'!} -- C-c C-h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
top_command (cmd_load currentFile []) | ||
goal_command 0 (cmd_helper_function AsIs) "helper" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(agda2-status-action "") | ||
(agda2-info-action "*Type-checking*" "" nil) | ||
(agda2-highlight-clear) | ||
(agda2-status-action "") | ||
(agda2-info-action "*All Goals*" "?0 : Σ ℕ T " nil) | ||
((last . 1) . (agda2-goals-action '(0))) | ||
(agda2-status-action "") | ||
(agda2-info-action-and-copy "*Helper function*" "helper : Σ ℕ T " nil) |