Skip to content

0.10.0

Compare
Choose a tag to compare
@Anton-4 Anton-4 released this 28 Apr 10:43
· 441 commits to main since this release
0.10.0
dd70c1f

⚠️ This release requires a version of Roc released on April 15 2024 or later.

docs

examples

Roc syntax to use this platform:

app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br" }

What's Changed

Breaking changes

  • Update type of main from Task {} I32 to Task {} [Exit I32 Str]_, see #184 and #188. Where you used Task.err 1 in the past, you would now use something like Task.err (Exit 1 "unable to read file: $(msg)").

  • New error pattern in API #188, for example:

# old
deleteEmpty : Path -> Task {} IOError
# new
deleteEmpty : Path -> Task {} [DirErr Err]

# old
output : Cmd -> Task Output (Output, Error)
# new
output : Cmd -> Task Output [CmdOutputError (Output, Err)]

Other

  • Used Roc's new ! syntax all over #184
  • Added convenience function Task.result #182
  • minor fix in examples/dir.roc #195
  • Remove unused Effect type import in Path.roc #183

Full Changelog: 0.9.1...0.10.0