diff options
Diffstat (limited to 'example-project/src')
-rw-r--r-- | example-project/src/main/frege/ch/fhnw/thga/Dep.fr | 3 | ||||
-rw-r--r-- | example-project/src/main/frege/ch/fhnw/thga/Test.fr | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/example-project/src/main/frege/ch/fhnw/thga/Dep.fr b/example-project/src/main/frege/ch/fhnw/thga/Dep.fr new file mode 100644 index 0000000..1edc713 --- /dev/null +++ b/example-project/src/main/frege/ch/fhnw/thga/Dep.fr @@ -0,0 +1,3 @@ +module ch.fhnw.thga.Dep where + +square x = x * x
\ No newline at end of file diff --git a/example-project/src/main/frege/ch/fhnw/thga/Test.fr b/example-project/src/main/frege/ch/fhnw/thga/Test.fr new file mode 100644 index 0000000..8467d11 --- /dev/null +++ b/example-project/src/main/frege/ch/fhnw/thga/Test.fr @@ -0,0 +1,14 @@ +module ch.fhnw.thga.Test where + +import ch.fhnw.thga.Dep + +frobnicate a = (square a, "Frege rocks") + +add a b = a + b + +sub a b = a - b + +mult a b = a * b + +main = do + println $ frobnicate 5
\ No newline at end of file |