-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix #359 ] Do not reapply clauses of projection-like functions to t…
…heir parameters
- Loading branch information
1 parent
03c9aae
commit 0721934
Showing
4 changed files
with
27 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
open import Haskell.Prelude | ||
|
||
module _ (@0 n : Bool) where | ||
|
||
record R : Set where | ||
field | ||
fld : Int | ||
open R public | ||
|
||
{-# COMPILE AGDA2HS R #-} | ||
|
||
foo : R → Int | ||
foo x = fld x | ||
|
||
{-# COMPILE AGDA2HS foo #-} |
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 |
---|---|---|
|
@@ -82,4 +82,5 @@ import Issue309 | |
import Issue317 | ||
import ErasedPatternLambda | ||
import CustomTuples | ||
import ProjectionLike | ||
|