haskell / happy

The Happy parser generator for Haskell
Other
276 stars 84 forks source link

Documentation: Fixed monadic and threaded lexers examples #165

Closed asr closed 4 years ago

asr commented 4 years ago

I got the following error when running the monadic and threaded lexers examples in the documentation:

    • Data constructor not in scope: OK :: a -> E a
    • Perhaps you meant ‘Ok’ (line 11)
   |
29 |     Ok a     -> OK a
   |                 ^^

This PR fix these examples.