parsec
parsec copied to clipboard
tokenise comments
Currently comments are treated as whiteSpace. This leaves {-# LANGUAGE #-} and other Haskell pragmas out of parsed AST.
This proposal is to parse comments as a distinct token
whiteSpace
could return [String] where each string is a separate comment line