How to make error type to be ParseErrorBundle String Void in happy?

63 Views Asked by At

I'm writing parser.y

%error { parseError }


parseError :: [Token] -> a
parseError _ = error "Parse error"

That is default in tutorials that I saw. I want the error type to be ParseErrorBundle String Void. What I should do for that?

0

There are 0 best solutions below