Install alex by entering the following commands in the terminal:
sudo apt update sudo apt install alex
lexical analyser generator for Haskell
Alex is a tool for generating lexical analysers in Haskell, given a description of the tokens to be recognised in the form of regular expressions. It is similar to the tool lex or flex for C/C++.