roc icon indicating copy to clipboard operation
roc copied to clipboard

Improve parser error message for elm-style records

Open rtfeldman opened this issue 4 years ago • 2 comments

{ x = 5 } causes a panic

rtfeldman avatar Sep 05 '21 01:09 rtfeldman

No longer a panic but error message could be better

» { x = 5 }

── RECORD PARSE PROBLEM ────────────────────────────────────────────────────────

I am partway through parsing an record, but I got stuck here:

1│  app "app" provides [replOutput] to "./platform"
2│
3│  replOutput =
4│      { x = 5 }
        ^

TODO provide more context.

ayazhafiz avatar Aug 17 '22 22:08 ayazhafiz

Still relevant

isaacvando avatar Dec 08 '24 02:12 isaacvando