roc icon indicating copy to clipboard operation
roc copied to clipboard

Allow inferred flex vars inside type constructors bound to an ability

Open ayazhafiz opened this issue 3 years ago • 0 comments

Supports stuff like

decoded = Str.toUtf8 "{\"first\":\"ab\",\"second\":\"cd\"}" |> Decode.fromBytes Json.fromUtf8
when decoded is
    Ok rcd -> Str.concat rcd.first rcd.second
    _ -> "something went wrong"

ayazhafiz avatar Aug 16 '22 19:08 ayazhafiz