fix issue with try in parser, improve parse error message
This commit is contained in:
14
tests/ErrMsg.newt
Normal file
14
tests/ErrMsg.newt
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user