Quick question. Is the following program supposed to compile? Types are correct, yes, but I did not expect it to build given the lack of implementation for the function f. It is kind of surprising for it to crash at runtime when it compiled without warnings or errors.
app "hello"
packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br" }
imports [pf.Task.{ Task }]
provides [main] to pf
f : {} -> {}
main =
f {}
|> Task.ok
should give a warning, but it is supposed to compile
Last updated: Nov 09 2025 at 12:14 UTC