Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some useful helpers for parsec library
Synopsis
- data Host
- = IPv4Address { }
- | IPv6Address { }
- | HostName { }
- port :: CharParser Word16
- ipv4address :: CharParser String
- ipv6address :: CharParser String
- ipv6addressWithScope :: CharParser String
- hostname :: CharParser String
- host :: CharParser String
- host' :: CharParser Host
- connection :: CharParser (String, Maybe Word16)
- connection' :: CharParser (Host, Maybe Word16)
- recipient :: CharParser (String, Word16)
- type CharParser a = forall s u m. Stream s m Char => ParsecT s u m a
- countMinMax :: Stream s m t => Int -> Int -> ParsecT s u m a -> ParsecT s u m [a]
- limitedInt :: Int -> String -> CharParser Int
- byte :: CharParser Word
- asciiAlphaNum :: CharParser Char
- parseIntegralSafe :: Integral a => CharParser a
- base64 :: CharParser ByteString
- base64Url :: CharParser ByteString
Documentation
port :: CharParser Word16 Source #
host :: CharParser String Source #
host' :: CharParser Host Source #
connection :: CharParser (String, Maybe Word16) Source #
connection' :: CharParser (Host, Maybe Word16) Source #
recipient :: CharParser (String, Word16) Source #
Parser
for host with both hostname and port.
Example: 54.122.0.255:9999
limitedInt :: Int -> String -> CharParser Int Source #
byte :: CharParser Word Source #
parseIntegralSafe :: Integral a => CharParser a Source #