Haskell Parser error.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrimpylimes
    New Member
    • Jul 2019
    • 10

    Haskell Parser error.

    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.
Working...