-
Notifications
You must be signed in to change notification settings - Fork 3
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
a1c6bd9
commit c790d2f
Showing
18 changed files
with
82 additions
and
69 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
Binary file not shown.
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
module Main | ||
{ Main.add : forall (a_1 : Type). forall (b_2 : Type). forall (c_3 : Type). a_1 -> b_2 -> c_3 | ||
= Elara.Prim.elaraPrimitive @(a_1 -> b_2 -> c_3) "undefined" | ||
{ Main.add2 : Int -> String | ||
= Elara.Prim.elaraPrimitive @(Int -> String) "undefined" | ||
; | ||
Main.add2 : String -> Char -> Int | ||
= Elara.Prim.elaraPrimitive @(String -> Char -> Int) "undefined" | ||
; | ||
Main.main : Int | ||
= Main.add @String @Char @Int "1" 'c' } | ||
Main.main : IO () | ||
= Prelude.println (Main.add2 1) } |
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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
module Main exposing (..) | ||
|
||
import Prelude exposing (..) | ||
|
||
|
||
def Main.add : (a_1 -> (b_2 -> c_3)) | ||
let Main.add = | ||
(Elara.Prim.elaraPrimitive "undefined" ) | ||
|
||
def Main.add2 : (Elara.Prim.String -> (Elara.Prim.Char -> Elara.Prim.Int)) | ||
def Main.add2 : (Elara.Prim.Int -> Elara.Prim.String) | ||
let Main.add2 = | ||
(Elara.Prim.elaraPrimitive "undefined" ) | ||
|
||
def Main.main : Elara.Prim.Int | ||
def Main.main : Elara.Prim.IO () | ||
let Main.main = | ||
((Main.add "1" ) 'c' ) | ||
(Prelude.println (Main.add2 1 ) ) |
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 |
---|---|---|
@@ -1,38 +1,16 @@ | ||
module Main exposing (..) | ||
|
||
import Prelude exposing (..) | ||
|
||
|
||
def Main.add : forall (a_1 : Type) (b_2 : Type) (c_3 : Type) . a_1 -> b_2 -> c_3 | ||
let Main.add = | ||
((Elara.Prim.elaraPrimitive : forall (a_0 : Type) . Text -> a_0 @a_1 -> | ||
b_2 -> | ||
c_3) : forall (a_1 : Type) . | ||
forall (b_2 : Type) . | ||
forall (c_3 : Type) . | ||
a_1 -> | ||
b_2 -> | ||
c_3 "undefined" : Text) : forall (a_1 : Type) . | ||
forall (b_2 : Type) . | ||
forall (c_3 : Type) . | ||
a_1 -> | ||
b_2 -> | ||
c_3 | ||
|
||
def Main.add2 : Text -> Char -> Integer | ||
def Main.add2 : Integer -> Text | ||
let Main.add2 = | ||
((Elara.Prim.elaraPrimitive : forall (a_0 : Type) . Text -> a_0 @Text -> | ||
Char -> | ||
Integer) : Text -> | ||
Char -> | ||
Integer "undefined" : Text) : Text -> | ||
Char -> | ||
Integer | ||
((Elara.Prim.elaraPrimitive : forall (a_0 : Type) . Text -> a_0 @Integer -> | ||
Text) : Integer -> | ||
Text "undefined" : Text) : Integer -> | ||
Text | ||
|
||
def Main.main : Integer | ||
def Main.main : IO Unit | ||
let Main.main = | ||
(((((Main.add : forall (a_1 : Type) . | ||
forall (b_2 : Type) . | ||
forall (c_3 : Type) . | ||
a_1 -> b_2 -> c_3 @Text) : Char -> | ||
Integer "1" : Text) : Char -> | ||
Integer @Char) : Integer @Integer) : Integer 'c' : Char) : Integer | ||
(Prelude.println : Text -> IO Unit (Main.add2 : Integer -> | ||
Text 1 : Integer) : Text) : IO Unit | ||
|
Binary file not shown.
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,13 @@ | ||
module Prelude exposing (..) | ||
|
||
|
||
|
||
def Prelude.println : Text -> IO Unit | ||
let Prelude.println = | ||
((Elara.Prim.elaraPrimitive : forall (a_0 : Type) . Text -> a_0 @Text -> | ||
IO Unit | ||
) : Text -> | ||
IO Unit | ||
"println" : Text) : Text -> | ||
IO Unit | ||
|
Binary file not shown.
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,7 @@ | ||
package elara; | ||
|
||
public class Error { | ||
public static Throwable undefined() { | ||
return new RuntimeException("undefined"); | ||
} | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
module Prelude | ||
|
||
def println : String -> IO () | ||
let println = elaraPrimitive "println" |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
def add : a -> b -> c | ||
let add = elaraPrimitive "undefined" | ||
import Prelude | ||
|
||
def add2 : String -> Char -> Int | ||
def add2 : Int -> String | ||
let add2 = elaraPrimitive "undefined" | ||
|
||
def main : Int | ||
let main = add "1" 'c' | ||
def main : IO () | ||
let main = println (add2 1 ) |
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
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