From 47f99d65a09660863cb5d6b25b239ead3389f3ac Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Wed, 2 Feb 2022 18:50:13 +0100 Subject: feat: simplifies the whole gradle plugin - the `compileFregeTask` has a new optional input called `mainModuleName`. If it is set, it and only its dependencies will be compiled, otherwise all `.fr`files in the `mainSourceDir`will be compiled. - the internal `DependencyFregeTask` is deleted because it was only used by the vscode plugin and I decided to remove this gradle plugin as a dependency. - an example project folder was added to test the plugin manually. --- example-project/src/main/frege/ch/fhnw/thga/Dep.fr | 3 +++ example-project/src/main/frege/ch/fhnw/thga/Test.fr | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 example-project/src/main/frege/ch/fhnw/thga/Dep.fr create mode 100644 example-project/src/main/frege/ch/fhnw/thga/Test.fr (limited to 'example-project/src') 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 -- cgit