ganeti

Safe HaskellSafe-Infered

Ganeti.Parsers

Contents

Description

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

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 IntSource

A parser recognizing a number preceeded by spaces.

integerP :: Parser IntegerSource

A parser recognizing a number preceeded by spaces.

stringP :: Parser StringSource

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