foundation-0.0.8: Alternative prelude with batteries and no dependencies

LicenseBSD-style
MaintainerNicolas Di Prima <nicolas@primetype.co.uk>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Foundation.Network.IPv4

Description

IPv4 data type

Synopsis

Documentation

data IPv4 Source #

IPv4 data type

Instances

Eq IPv4 Source # 

Methods

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

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

Ord IPv4 Source # 

Methods

compare :: IPv4 -> IPv4 -> Ordering #

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

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

(>) :: IPv4 -> IPv4 -> Bool #

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

max :: IPv4 -> IPv4 -> IPv4 #

min :: IPv4 -> IPv4 -> IPv4 #

Show IPv4 Source # 

Methods

showsPrec :: Int -> IPv4 -> ShowS #

show :: IPv4 -> String #

showList :: [IPv4] -> ShowS #

IsString IPv4 Source # 

Methods

fromString :: String -> IPv4 #

NormalForm IPv4 Source # 

Methods

toNormalForm :: IPv4 -> () Source #

StorableFixed IPv4 Source # 

Methods

size :: proxy IPv4 -> Size Word8 Source #

alignment :: proxy IPv4 -> Size Word8 Source #

Storable IPv4 Source # 

Methods

peek :: Ptr IPv4 -> IO IPv4 Source #

poke :: Ptr IPv4 -> IPv4 -> IO () Source #

Hashable IPv4 Source # 

Methods

hashMix :: Hasher st => IPv4 -> st -> st Source #

any :: IPv4 Source #

"0.0.0.0"

loopback :: IPv4 Source #

"127.0.0.1"

ipv4Parser :: (Sequential input, Element input ~ Char) => Parser input IPv4 Source #

Parse a IPv4 address