fix issue with try in parser, improve parse error message

This commit is contained in:
2026-01-16 10:30:41 -08:00
parent 997adfd04c
commit a21dd2fd94
4 changed files with 33 additions and 9 deletions

14
tests/ErrMsg.newt Normal file
View File

@@ -0,0 +1,14 @@
module ErrMsg
import Prelude
infixl 5 _$$_
_$$_ : Nat (Nat Nat) Nat
a $$ b = a + b a
-- Say something other than expected record
-- Why do we get there? shouldn't the progress made by parseDef short circuit the <|>?
blah : Nat Nat
blah x = x $$ $ \ y => y