Safe HaskellSafe



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.


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.

numberP :: Parser Int Source #

A parser recognizing a number preceeded by spaces.

stringP :: Parser String Source #

A parser recognizing a word preceded by spaces, and closed by a space.