foundation-0.0.30: Alternative prelude with batteries and no dependencies
LicenseBSD-style
MaintainerNicolas Di Prima <nicolas@primetype.co.uk>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Foundation.Network.IPv4

Description

IPv4 data type

Synopsis

Documentation

data IPv4 Source #

IPv4 data type

Instances

Instances details
IsString IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Show IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

NormalForm IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Methods

toNormalForm :: IPv4 -> () Source #

Storable IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Methods

peek :: Ptr IPv4 -> IO IPv4 Source #

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

StorableFixed IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Methods

size :: proxy IPv4 -> CountOf Word8 Source #

alignment :: proxy IPv4 -> CountOf Word8 Source #

Hashable IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Methods

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

Eq IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

Methods

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

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

Ord IPv4 Source # 
Instance details

Defined in Foundation.Network.IPv4

any :: IPv4 Source #

"0.0.0.0"

loopback :: IPv4 Source #

"127.0.0.1"

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

Parse a IPv4 address