Any idea what could have gone wrong here?
This function expects 1 argument, but it got only 1:
10│ Task.attempt ((File.readUtf8 (Path.fromStr "../../1")) \result ->
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I had an unnecessary set of parens around all arguments for Task.attempt, but the error was confusing
hah, that must parse incorrectly somehow
would you mind opening an issue for this?
Opened issue #4335
Michał Łępicki has marked this topic as resolved.
It looks to me like you have one extra (
Luke Boswell said:
It looks to me like you have one extra (
I suspect the closing paren is after the body of the callback function. Otherwise we would have seen a syntax error, rather than a semantic error like this.
Last updated: Jul 06 2025 at 12:14 UTC