0.10.0
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
toTask {} [Exit I32 Str]_
, see #184 and #188. Where you usedTask.err 1
in the past, you would now use something likeTask.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