Skip to content

Commit febad89

Browse files
committed
🚧 Project structure idea
1 parent e432da4 commit febad89

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

‎examples/blah/build/Blah.mjs

Whitespace-only changes.

‎examples/blah/build/Spark/IO.mjs

Whitespace-only changes.

‎examples/blah/build/spark.prelude.mjs

Whitespace-only changes.

‎examples/blah/spark.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name = "Blah"

‎examples/blah/src/Blah.spark

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Spark/IO
2+
3+
def pub main =
4+
\_ <- IO.println("Hello, world!") |> IO.then
5+
\_ <- IO.println("This is the Blah module") |> IO.then
6+
IO.println("Bye!")

‎src/templates/Spark/IO.spark

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def pub println\text =
2+
\ <- action
3+
external "
4+
console.log(text);
5+
return $.nil;
6+
"
7+
8+
def pub then\@IO { perform }, f =
9+
\ <- action
10+
f(perform()).perform()
11+
12+
def action\perform =
13+
@IO { perform }

0 commit comments

Comments
 (0)