Closed MajronMan closed 5 years ago
For some reason I had to remove PCons case from parsing of patterns
leftRecursive : Pattern -> Parser s Pattern leftRecursive p = optionalParens <| lazy <| \() -> choice [ (PAs p <$> (symbol "as" *> varName)) >>= leftRecursive -- , ((PCons p) <$> (symbol "::" *> pattern)) >>= leftRecursive , succeed p -- epsilon ]
since when left uncommented, while running any test in tests/Pattern.elm I got This test failed because it threw an exception: "TypeError: f is not a function"
tests/Pattern.elm
This test failed because it threw an exception: "TypeError: f is not a function"
For some reason I had to remove PCons case from parsing of patterns
since when left uncommented, while running any test in
tests/Pattern.elm
I gotThis test failed because it threw an exception: "TypeError: f is not a function"