chuchu-0.1.3: Behaviour Driven Development like Cucumber for Haskell

Portabilitynon-portable (TypeSynonymInstances, FlexibleInstances)
Stabilityunstable
MaintainerMarco Túlio Pimenta Gontijo <marcotmarcot@gmail.com>
Safe HaskellNone

Test.Chuchu.Parser

Description

This modules provides some utility parsers for creating step rules.

Synopsis

Documentation

number :: ChuchuParser DoubleSource

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

int :: ChuchuParser IntegerSource

Parses an integer.

text :: ChuchuParser StringSource

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

wildcard :: String -> ChuchuParser ()Source

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

email :: ChuchuParser 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 "!#$%&'*+-/=?^_`{|}~.".