Copyright | Alej Cabrera 2015 |
---|---|
License | BSD-3 |
Maintainer | cpp.cabrera@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- intP :: (Read a, Integral a) => Text -> Env -> P a
- boolP :: Text -> Env -> P Bool
- floatP :: (Read a, Fractional a) => Text -> Env -> P a
- textP :: Text -> Env -> P Text
- bytesP :: (Text -> ByteString) -> Text -> Env -> P ByteString
- textPM :: Text -> Env -> P (Maybe Text)
- intPM :: (Read a, Integral a) => Text -> Env -> P (Maybe a)
- floatPM :: (Read a, Fractional a) => Text -> Env -> P (Maybe a)
- bytesPM :: (Text -> ByteString) -> Text -> Env -> P (Maybe ByteString)
- intH :: (Integral a, Read a) => CI Text -> Env -> P a
- boolH :: CI Text -> Env -> P Bool
- floatH :: (Fractional a, Read a) => CI Text -> Env -> P a
- textH :: CI Text -> Env -> P Text
- bytesH :: (Text -> ByteString) -> CI Text -> Env -> P ByteString
- textHM :: CI Text -> Env -> P (Maybe Text)
- intHM :: (Integral a, Read a) => CI Text -> Env -> P (Maybe a)
- floatHM :: (Fractional a, Read a) => CI Text -> Env -> P (Maybe a)
- bytesHM :: (Text -> ByteString) -> CI Text -> Env -> P (Maybe ByteString)
- choice :: [P a] -> P a
Documentation
floatP :: (Read a, Fractional a) => Text -> Env -> P a Source
Require a parameter as a fractional type
bytesP :: (Text -> ByteString) -> Text -> Env -> P ByteString Source
Require a parameter as bytes, applying the encoding function f
floatPM :: (Read a, Fractional a) => Text -> Env -> P (Maybe a) Source
Optional parameter as fractional
bytesPM :: (Text -> ByteString) -> Text -> Env -> P (Maybe ByteString) Source
Optional header as bytes, applying the encoding function f
bytesH :: (Text -> ByteString) -> CI Text -> Env -> P ByteString Source
Require a header as bytes, applying the encoding function f
floatHM :: (Fractional a, Read a) => CI Text -> Env -> P (Maybe a) Source
Optional header as floating
bytesHM :: (Text -> ByteString) -> CI Text -> Env -> P (Maybe ByteString) Source
Optional header as bytes, applying the encoding function f