pfq-lang (Spec 0.1)

Safe HaskellNone

Network.PFQ.Types

Synopsis

Documentation

newtype IPv4 #

IPv4 data type

Constructors

IPv4 

Fields

Instances

Show IPv4 # 

Methods

showsPrec :: Int -> IPv4 -> ShowS

show :: IPv4 -> String

showList :: [IPv4] -> ShowS

IsString IPv4 # 

Methods

fromString :: String -> IPv4

Generic IPv4 # 

Associated Types

type Rep IPv4 :: * -> *

Methods

from :: IPv4 -> Rep IPv4 x

to :: Rep IPv4 x -> IPv4

ToJSON IPv4 # 

Methods

toJSON :: IPv4 -> Value

toEncoding :: IPv4 -> Encoding

toJSONList :: [IPv4] -> Value

toEncodingList :: [IPv4] -> Encoding

FromJSON IPv4 # 

Methods

parseJSON :: Value -> Parser IPv4

parseJSONList :: Value -> Parser [IPv4]

Storable IPv4 # 

Methods

sizeOf :: IPv4 -> Int

alignment :: IPv4 -> Int

peekElemOff :: Ptr IPv4 -> Int -> IO IPv4

pokeElemOff :: Ptr IPv4 -> Int -> IPv4 -> IO ()

peekByteOff :: Ptr b -> Int -> IO IPv4

pokeByteOff :: Ptr b -> Int -> IPv4 -> IO ()

peek :: Ptr IPv4 -> IO IPv4

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

type Rep IPv4 # 
type Rep IPv4 = D1 (MetaData "IPv4" "Network.PFQ.Types" "main" True) (C1 (MetaCons "IPv4" PrefixI True) (S1 (MetaSel (Just Symbol "getHostAddress") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 HostAddress)))

newtype CIDR #

CIDR data-type

Constructors

CIDR 

Fields

Instances

Show CIDR # 

Methods

showsPrec :: Int -> CIDR -> ShowS

show :: CIDR -> String

showList :: [CIDR] -> ShowS

IsString CIDR # 

Methods

fromString :: String -> CIDR

Generic CIDR # 

Associated Types

type Rep CIDR :: * -> *

Methods

from :: CIDR -> Rep CIDR x

to :: Rep CIDR x -> CIDR

ToJSON CIDR # 

Methods

toJSON :: CIDR -> Value

toEncoding :: CIDR -> Encoding

toJSONList :: [CIDR] -> Value

toEncodingList :: [CIDR] -> Encoding

FromJSON CIDR # 

Methods

parseJSON :: Value -> Parser CIDR

parseJSONList :: Value -> Parser [CIDR]

Storable CIDR # 

Methods

sizeOf :: CIDR -> Int

alignment :: CIDR -> Int

peekElemOff :: Ptr CIDR -> Int -> IO CIDR

pokeElemOff :: Ptr CIDR -> Int -> CIDR -> IO ()

peekByteOff :: Ptr b -> Int -> IO CIDR

pokeByteOff :: Ptr b -> Int -> CIDR -> IO ()

peek :: Ptr CIDR -> IO CIDR

poke :: Ptr CIDR -> CIDR -> IO ()

type Rep CIDR # 
type Rep CIDR = D1 (MetaData "CIDR" "Network.PFQ.Types" "main" True) (C1 (MetaCons "CIDR" PrefixI True) (S1 (MetaSel (Just Symbol "getNetworkPair") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (IPv4, Int))))

inetAtoN :: String -> IO IPv4 #

inetNtoA :: IPv4 -> IO String #