Safe Haskell | Safe |
---|
Utility functions for several parsers
This module holds the definition for some utility functions for two
parsers. The parser for the procstat
file and the parser for the
procdiskstats
file.
Synopsis
- skipSpaces :: Parser ()
- numberP :: Parser Int
- stringP :: Parser String
Utility functions
skipSpaces :: Parser () Source #
Our own space-skipping function, because A.skipSpace also skips newline characters. It skips ZERO or more spaces, so it does not fail if there are no spaces.