-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile Agda sections to Haskell sections
- Loading branch information
Showing
6 changed files
with
41 additions
and
10 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,17 @@ | ||
|
||
module Sections where | ||
|
||
open import Haskell.Prelude | ||
|
||
test₁ : Nat → Nat | ||
test₁ = 5 +_ | ||
|
||
test₂ : Nat → Nat | ||
test₂ = _+ 5 | ||
|
||
test₃ : Nat → Nat | ||
test₃ = _+_ 5 | ||
|
||
{-# COMPILE AGDA2HS test₁ #-} | ||
{-# COMPILE AGDA2HS test₂ #-} | ||
{-# 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ module AllTests where | |
|
||
import Issue14 | ||
import Pragmas | ||
import Sections | ||
import Test | ||
import Tuples | ||
|
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 @@ | ||
module Sections where | ||
|
||
test₁ :: Integer -> Integer | ||
test₁ = (5 +) | ||
|
||
test₂ :: Integer -> Integer | ||
test₂ = (+ 5) | ||
|
||
test₃ :: Integer -> Integer | ||
test₃ = (5 +) | ||
|