app "roctorrent" packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.5.0/Cufzl36_SnJ4QbOoEmiJ5dIpUxBvdB3NEySvuH82Wio.tar.br" } imports [pf.Stdout] provides [main] to pf bDecodeStr: List U8 -> Result (List U8) [Malformatted] bDecodeStr = \i -> List.splitFirst i ':' |> Result.mapErr \_err -> Malformatted |> Result.map \{before, } -> before expect res = bDecodeStr (Str.toUtf8 "foo") res == Err Malformatted main = Stdout.line "Hello, World"