You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This expression has a type that does not implement the abilities it's expected to:
11│ when Str.fromUtf8 (Encode.toBytes {} MyModule.jsonCoder) is
^^^^^^^^^^^^^^^^^^
The type Json does not fully implement the ability EncoderFormatting.
main.roc
app [main]{
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br",
json:"https://github.com/lukewilliamboswell/roc-json/releases/download/0.9.0/JI4BuuOuWnD1R3Xcx-F8VrWdj-LM_FfDRB00ekYjIIQ.tar.br",}
import MyModule
import pf.Stdout
import pf.Stderr
main =
when Str.fromUtf8(Encode.toBytes{}MyModule.jsonCoder) is
Ok o ->
Stdout.line! o
Err err ->
Stderr.line! (Inspect.toStr err)
The following program builds but gives the error:
main.roc
MyModule.roc
Note: this error does not appear if the contents of
MyModule.roc
are moved tomain.roc
.The text was updated successfully, but these errors were encountered: