Haskell-based JSON lexical analyser (for self-educational purposes)