alex: Alex is a tool for generating lexical analysers in Haskell

[ bsd3, development, program ] [ Propose Tags ]
This version is deprecated.

Alex is a tool for generating lexical analysers in Haskell. It takes a description of tokens based on regular expressions and generates a Haskell module containing code for scanning text efficiently. It is similar to the tool lex or flex for C/C++.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 2.1.0, 2.2, 2.3, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7,,,,,, (info)
Change log
Dependencies array, base (>=2.1 && <5), containers, directory [details]
License BSD-3-Clause
Copyright (c) Chis Dornan, Simon Marlow
Author Chris Dornan and Simon Marlow
Maintainer Simon Marlow <>
Category Development
Home page
Bug tracker
Source repo head: git clone
Uploaded by AndreasAbel at 2023-04-03T21:20:37Z
Distributions Arch:, Debian:3.2.5, Fedora:, FreeBSD:3.1.4, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Reverse Dependencies 1 direct, 0 indirect [details]
Executables alex
Downloads 160901 total (555 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-04-03 [all 1 reports]

Readme for alex-

[back to package description]

Alex: A Lexical Analyser Generator


Alex is a tool for generating lexical analysers, also known as "lexers" and "scanners", in Haskell. The lexical analysers implement a description of the tokens to be recognised in the form of regular expressions. It is similar to the tools "lex" and "flex" for C/C++.

Share and enjoy!


Documentation is hosted on Read the Docs:

For basic information of the sort typically found in a read-me, see the following sections of the docs: