-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc3a4d3
commit 966ebf9
Showing
8 changed files
with
57 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
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,19 @@ | ||
module EraseType where | ||
|
||
open import Haskell.Prelude | ||
open import Haskell.Extra.Erase | ||
|
||
testErase : Erase Int | ||
testErase = Erased 42 | ||
|
||
{-# COMPILE AGDA2hs testErase #-} | ||
|
||
testRezz : Rezz Int (get testErase) | ||
testRezz = rezz 42 | ||
|
||
{-# COMPILE AGDA2HS testRezz #-} | ||
|
||
testRezzErase : Rezz (Erase Int) testErase | ||
testRezzErase = rezzErase | ||
|
||
{-# COMPILE AGDA2HS testRezzErase #-} |
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 |
---|---|---|
|
@@ -62,4 +62,5 @@ import ModuleParameters | |
import ModuleParametersImports | ||
import Coerce | ||
import Inlining | ||
import EraseType | ||
|
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,10 @@ | ||
module EraseType where | ||
|
||
import Haskell.Extra.Erase (rezzErase) | ||
|
||
testRezz :: Int | ||
testRezz = 42 | ||
|
||
testRezzErase :: () | ||
testRezzErase = rezzErase | ||
|
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,17 @@ | ||
module Haskell.Extra.Erase where | ||
|
||
rezzCong :: (a -> b) -> a -> b | ||
rezzCong f x = f x | ||
|
||
rezzCong2 :: (a -> b -> c) -> a -> b -> c | ||
rezzCong2 f x y = f x y | ||
|
||
rezzHead :: [a] -> a | ||
rezzHead (x : xs) = x | ||
|
||
rezzTail :: [a] -> [a] | ||
rezzTail (x : xs) = xs | ||
|
||
rezzErase :: () | ||
rezzErase = () | ||
|