License | BSD-style |
---|---|
Maintainer | Nicolas Di Prima <nicolas@primetype.co.uk> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
IPv4 data type
Synopsis
- data IPv4
- any :: IPv4
- loopback :: IPv4
- fromString :: IsString a => String -> a
- toString :: IPv4 -> String
- fromTuple :: (Word8, Word8, Word8, Word8) -> IPv4
- toTuple :: IPv4 -> (Word8, Word8, Word8, Word8)
- ipv4Parser :: (ParserSource input, Element input ~ Char, Sequential (Chunk input), Element input ~ Element (Chunk input)) => Parser input IPv4
Documentation
IPv4 data type
Instances
IsString IPv4 Source # | |
Defined in Foundation.Network.IPv4 fromString :: String -> IPv4 # | |
Show IPv4 Source # | |
NormalForm IPv4 Source # | |
Defined in Foundation.Network.IPv4 toNormalForm :: IPv4 -> () Source # | |
Storable IPv4 Source # | |
StorableFixed IPv4 Source # | |
Hashable IPv4 Source # | |
Eq IPv4 Source # | |
Ord IPv4 Source # | |
fromString :: IsString a => String -> a #
ipv4Parser :: (ParserSource input, Element input ~ Char, Sequential (Chunk input), Element input ~ Element (Chunk input)) => Parser input IPv4 Source #
Parse a IPv4 address