[haskell mode] Improve tokeniziation of '[1..100]'

Closes #2099