serokell-util-0.10.0: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.Util.Parse

Description

Some useful helpers for parsec library

Synopsis

Documentation

data Host Source #

Constructors

IPv4Address 

Fields

IPv6Address 

Fields

HostName 

Fields

Instances
Eq Host Source # 
Instance details

Defined in Serokell.Util.Parse.Network

Methods

(==) :: Host -> Host -> Bool #

(/=) :: Host -> Host -> Bool #

Ord Host Source # 
Instance details

Defined in Serokell.Util.Parse.Network

Methods

compare :: Host -> Host -> Ordering #

(<) :: Host -> Host -> Bool #

(<=) :: Host -> Host -> Bool #

(>) :: Host -> Host -> Bool #

(>=) :: Host -> Host -> Bool #

max :: Host -> Host -> Host #

min :: Host -> Host -> Host #

Show Host Source # 
Instance details

Defined in Serokell.Util.Parse.Network

Methods

showsPrec :: Int -> Host -> ShowS #

show :: Host -> String #

showList :: [Host] -> ShowS #

recipient :: CharParser (String, Word16) Source #

Parser for host with both hostname and port. Example: 54.122.0.255:9999

type CharParser a = forall s u m. Stream s m Char => ParsecT s u m a Source #

countMinMax :: Stream s m t => Int -> Int -> ParsecT s u m a -> ParsecT s u m [a] Source #