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
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
whiteSpacecould return [String] where each string is a separate comment line