-
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.
Unspine system projections when they have display forms (#7055)
* Unspine system projections when they have display forms * fixup: get rid of nasty unsafePerformIO
- Loading branch information
Showing
7 changed files
with
50 additions
and
11 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
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
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,25 @@ | ||
{-# OPTIONS --postfix-projections #-} | ||
module PostfixProjDisplay where | ||
|
||
open import Agda.Builtin.Equality | ||
|
||
postulate | ||
A : Set | ||
a : A | ||
|
||
record Foo : Set where | ||
field | ||
_+_ : A → A → A | ||
|
||
record Bar : Set where | ||
field | ||
foo : Foo | ||
open Foo foo public | ||
|
||
module M1 (X : Bar) where | ||
open Bar X | ||
|
||
-- Error message should show a + a | ||
-- Used to show foo .Foo._+_ a a | ||
it : a + a ≡ a | ||
it = refl |
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,3 @@ | ||
PostfixProjDisplay.agda:25,8-12 | ||
a + a != a of type A | ||
when checking that the expression refl has type (a + a) ≡ a |