mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
9 lines
393 B
Text
9 lines
393 B
Text
# +opt infer:print_only_under_alias
|
|
app "test" provides [main] to "./platform"
|
|
|
|
N := U8 implements [Decoding]
|
|
|
|
main : Decoder N _
|
|
main = Decode.custom \bytes, fmt ->
|
|
Decode.decode_with bytes Decode.decoder fmt
|
|
# ^^^^^^^^^^^^^^ N#Decode.decoder(3): List U8, fmt -[[7]]-> { rest : List U8, result : [Err [TooShort], Ok U8] } where fmt implements DecoderFormatting
|