-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix #357 ] Check that type arguments are valid Haskell types before…
… dropping them
- Loading branch information
1 parent
66199b9
commit c28556d
Showing
6 changed files
with
40 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,12 @@ | ||
open import Haskell.Prelude | ||
open import Agda.Primitive | ||
|
||
module Fail.Issue357a where | ||
|
||
k : a → b → a | ||
k x _ = x | ||
{-# COMPILE AGDA2HS k #-} | ||
|
||
testK : Nat | ||
testK = k 42 lzero | ||
{-# COMPILE AGDA2HS testK #-} |
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 | ||
open import Agda.Primitive | ||
|
||
module Fail.Issue357b where | ||
|
||
k : a → b → a | ||
k x _ = x | ||
{-# COMPILE AGDA2HS k #-} | ||
|
||
l : Level → Nat | ||
l = k 42 | ||
{-# COMPILE AGDA2HS l #-} | ||
|
||
testK : Nat | ||
testK = l lzero | ||
{-# COMPILE AGDA2HS testK #-} |
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 @@ | ||
test/Fail/Issue357a.agda:10,1-6 | ||
Bad Haskell type: Level |
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 @@ | ||
test/Fail/Issue357b.agda:10,1-2 | ||
Bad Haskell type: Level |