aboutsummaryrefslogtreecommitdiff
path: root/example-project/src
diff options
context:
space:
mode:
authortricktron <tgagnaux@gmail.com>2022-02-23 20:32:37 +0100
committerGitHub <noreply@github.com>2022-02-23 20:32:37 +0100
commit5dda097196baa60fc45bb4f300439d791ccb1130 (patch)
tree64398be1c6faa992427c2e976a1347cf8f9d3de3 /example-project/src
parentddf176c4d9ad16648ea8e2459694d34d6c68e5d7 (diff)
parente45ba9993b9465a088e0ec08a099e65caa993f9e (diff)
downloadfrege-gradle-plugin-5dda097196baa60fc45bb4f300439d791ccb1130.tar.gz
frege-gradle-plugin-5dda097196baa60fc45bb4f300439d791ccb1130.tar.bz2
frege-gradle-plugin-5dda097196baa60fc45bb4f300439d791ccb1130.zip
Merge pull request #23 from tricktron/f-minimal-frege-repl
New Simpler Repl Task
Diffstat (limited to 'example-project/src')
-rw-r--r--example-project/src/main/frege/ch/fhnw/thga/Dep.fr3
-rw-r--r--example-project/src/main/frege/ch/fhnw/thga/Test.fr14
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