Skip to content

Conversation

@PiotrJustyna
Copy link
Contributor

First of all, thank you for your fantastic work on alex. I keep coming back to this repository.

I recently found myself needing more information from lexing errors, specifically error position in the input. I've been using the basic wrapper, then switched to posn and finally landed on monad. I had a difficult time putting together the full picture of an alex file implementing the monad wrapper and once I finally got it done, I thought my files could help somebody.


Additionally, I made two small improvements/fixes so the examples compile with ghc 9.8.4:

  • import Data.Char (ord) required by examples:
    • haskell.x
    • tiger.x
  • I changed alex location to where my cabal places it. Probably not the most portable thing and something better could be used but it does work and gives the user an idea of where to look for alex: ALEX=../dist-newstyle/build/x86_64-linux/ghc-9.8.4/alex-3.5.4.0/x/alex/build/alex/alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant