forked from agda/agda2hs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix agda#317 ] Add parens around infix where left argument is anoth…
…er infix with lambda RHS
- Loading branch information
1 parent
fdbebb6
commit df7978f
Showing
5 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
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,11 @@ | ||
open import Haskell.Prelude | ||
|
||
record D : Set where | ||
constructor C | ||
field unC : Int | ||
open D public | ||
{-# COMPILE AGDA2HS D #-} | ||
|
||
test : D → D | ||
test d = C ∘ unC $ d | ||
{-# COMPILE AGDA2HS test #-} |
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 |
---|---|---|
|
@@ -79,4 +79,5 @@ import Issue301 | |
import Issue305 | ||
import Issue302 | ||
import Issue309 | ||
import Issue317 | ||
|
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,7 @@ | ||
module Issue317 where | ||
|
||
data D = C{unC :: Int} | ||
|
||
test :: D -> D | ||
test d = (C . \ r -> unC r) $ d | ||
|