i have written, over the last week or so, the beginnings of a tokenizer for a programming language i'm designing. i wrote it in Haskell using the Megaparsec library. i'm interested in comments / critique from experienced Haskell programmers! (and feel free to chime in if you use another functional language!)
i'm interested in:
- code smells / antipatterns
- more elegant constructions
- performance
- conventions
- things i did right and should keep doing that way
- recommendations for techniques, language extensions, or libraries
here is the tokenizer itself. i figure that's the most interesting file, but feel free to browse that repository and look at other files too, including the Cabal files. there's also a Rust version that i had been working on a few months before, if you want to compare!
thanks cuties π

eggbug enjoyer