Created
March 3, 2017 16:08
-
-
Save gallais/fa7f8a749d8b1aea026d2c5fa4f88928 to your computer and use it in GitHub Desktop.
New COMPILE pragmas in Agda
This file contains hidden or 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
module Compiled-252 where | |
data U : Set where | |
z : U | |
s : U → U | |
{-# IMPORT Compiled.URaw #-} | |
{-# COMPILED_DATA U Compiled.URaw.U Compiled.URaw.Z Compiled.URaw.S #-} |
This file contains hidden or 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
module Compiled-253 where | |
data U : Set where | |
z : U | |
s : U → U | |
{-# FOREIGN GHC import qualified Compiled.URaw #-} | |
{-# COMPILE GHC U = data Compiled.URaw.U (Compiled.URaw.Z | Compiled.URaw.S) #-} |
This file contains hidden or 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
module Compiled where | |
-- open import Compiled-252 | |
open import Compiled-253 | |
pred : U → U | |
pred z = z | |
pred (s t) = t |
This file contains hidden or 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
module Compiled.URaw where | |
data U = Z | S U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment