chuchu- Behaviour Driven Development like Cucumber for Haskell

Portabilitynon-portable (TypeSynonymInstances, FlexibleInstances)
MaintainerMarco Túlio Pimenta Gontijo <>
Safe HaskellSafe-Infered



This modules provides some utility parsers for creating step rules.



number :: Parser DoubleSource

Parses a floating point number, with the same syntax as accepted by Haskell.

int :: Parser IntegerSource

Parses an integer.

text :: Parser StringSource

Parses a quoted string, with the same syntax as accepted by Haskell.

wildcard :: String -> Parser ()Source

Parses anything until the string passed as parameter, and also the string.

email :: Parser StringSource

Parses a simplified e-mail address and return everything that was parsed as a simple String. This is a very simplified parser for e-mail, which does not follow RFC5322. Basically, it parses TEXT@TEXT, where TEXT is alphaNum <|> oneOf "!#$%&'*+-/=?^_`{|}~.".