haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

fix tiny bug in pattern match #104

Closed m-schmidt closed 7 years ago

m-schmidt commented 7 years ago

I fixed a small bug in the pattern match of function alexInputPrevChar in the wrappers chapter.

erikd commented 7 years ago

@m-schmidt I'm surprised this wasn't caught in previous testing. Do you have a small test case that failed before your patch and passes after?

m-schmidt commented 7 years ago

I'm not sure, but it is only demo code from the documentation. Hence it is never compile or run...

erikd commented 7 years ago

@m-schmidt Sorry never mind me. The patch was so small that I somehow overlooked the fact that it was in the docs.