Sane parser rewrite

This commit is contained in:
2026-05-16 14:29:35 -05:00
parent e2d035286d
commit 593aa96193
7 changed files with 469 additions and 315 deletions

View File

@@ -6,9 +6,9 @@
-- fork spawns a concurrent task and returns a handle.
-- await blocks until the task completes and returns its value.
worker = (msg :
worker = msg :
bind (putStrLn (append "working: " msg)) (_ :
pure (append msg "-result")))
pure (append msg "-result"))
main = io <|
(bind (fork (worker "job1")) (h1 :

View File

@@ -5,6 +5,6 @@
-- Greet and return a pure value.
-- putStrLn writes to stdout; pure lifts "done" into IO.
main = io (bind
(putStrLn (append "Hello, " "tricu"))
(_ : pure ""))
main = io <|
bind (putStrLn (append "Hello, " "tricu"))
(_ : pure "")