-
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.
… to `(->)`
- Loading branch information
1 parent
c28556d
commit 6715421
Showing
5 changed files
with
52 additions
and
6 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,22 @@ | ||
|
||
open import Haskell.Prelude | ||
|
||
data D1 (t : Set → Set) : Set where | ||
C1 : t Bool → D1 t | ||
|
||
{-# COMPILE AGDA2HS D1 #-} | ||
|
||
f1 : D1 (λ a → Int → a) | ||
f1 = C1 (_== 0) | ||
|
||
{-# COMPILE AGDA2HS f1 #-} | ||
|
||
data D2 (t : Set → Set → Set) : Set where | ||
C2 : t Int Int → D2 t | ||
|
||
{-# COMPILE AGDA2HS D2 #-} | ||
|
||
f2 : D2 (λ a b → a → b) | ||
f2 = C2 (_+ 1) | ||
|
||
{-# COMPILE AGDA2HS f2 #-} |
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 |
---|---|---|
|
@@ -83,4 +83,5 @@ import Issue317 | |
import ErasedPatternLambda | ||
import CustomTuples | ||
import ProjectionLike | ||
import FunCon | ||
|
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 @@ | ||
module FunCon where | ||
|
||
data D1 t = C1 (t Bool) | ||
|
||
f1 :: D1 ((->) Int) | ||
f1 = C1 (== 0) | ||
|
||
data D2 t = C2 (t Int Int) | ||
|
||
f2 :: D2 (->) | ||
f2 = C2 (+ 1) | ||
|