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?
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?