I'm trying out the happy parser generator of Haskell. After generating the module in happy.hs (no problem while generating!), I run the command `ghc happy.hs`, and I get the error: `Line 297: parse error on input 'data'`. Does anyone have solutions? Or tell me where can I get the solution?
I tried loading the module in GHCi, rather than compiling it using ghc. But it seems not to be working too - I get the same error.
I expect the program to run smoothly without any errors, but it doesn't.
I tried loading the module in GHCi, rather than compiling it using ghc. But it seems not to be working too - I get the same error.
I expect the program to run smoothly without any errors, but it doesn't.