Hi,
I installed roc and cloned roc-htmx-playground. When I try to run it it's giving me this error :
% DB_PATH=test.db roc dev src/main.roc
── STATEMENT AFTER EXPRESSION in ...xhJpAh71uoVUlC-rsWvmjzTYOJKhu4M/Effect.roc ─
I just finished parsing an expression with a series of definitions,
and this line is indented as if it's intended to be part of that
expression:
1│ hosted Effect
2│ exposes [
3│ Effect,
4│ after,
5│ map,
6│ always,
7│ forever,
8│ loop,
9│ dirList,
10│ envList,
11│ envVar,
12│ cwd,
13│ setCwd,
14│ exePath,
15│ stdoutLine,
16│ stdoutWrite,
17│ stdoutFlush,
18│ stderrLine,
19│ stderrWrite,
20│ stderrFlush,
21│ sendRequest,
22│ fileReadBytes,
23│ fileDelete,
24│ fileWriteUtf8,
25│ fileWriteBytes,
26│ posixTime,
27│ tcpConnect,
28│ tcpClose,
29│ tcpReadUpTo,
30│ tcpReadExactly,
31│ tcpReadUntil,
32│ tcpWrite,
33│ sleepMillis,
34│ commandStatus,
35│ commandOutput,
36│ sqliteExecute,
37│ ]
38│ imports [
39│ InternalHttp,
40│ InternalFile,
41│ InternalTcp,
42│ InternalCommand,
43│ InternalError,
44│ InternalSQL,
45│ ]
46│ generates Effect with [after, map, always, forever, loop]
47│
48│ # Stdout
49│ stdoutLine : Str -> Effect {}
^
However, I already saw the final expression in that series of
definitions.%
Is it due to a recent change in Roc?
Yes, we recently made a big change to integrate the Task type into the standard library. You'll need to change https://github.com/lukewilliamboswell/roc-htmx-playground/blob/ac05d427bbafc499035e90fb401cd354c05975da/src/main.roc#L2 to the latest release here: https://github.com/roc-lang/basic-webserver/releases/tag/0.9.0
Excellent thank you!
Yeah, I haven't got around to upgrading it yet.
Ivw done the tailwind one already if that helps
Last updated: Jul 06 2025 at 12:14 UTC