text-postgresql-0.0.2.2: Parser and Printer of PostgreSQL extended types

Copyright2015 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell2010

Data.PostgreSQL.NetworkAddress

Description

This module defines network-address types of PostgreSQL. http://www.postgresql.org/docs/current/static/datatype-net-types.html

Synopsis

Documentation

data V6HostAddress Source #

Host address type along with IPv6 address string. Each Word16 value is host byte order. Host byte order is portable in programs on its own host. Network byte order is only needed, when communicating other hosts.

newtype Inet Source #

Constructors

Inet NetAddress 

Instances

Eq Inet Source # 

Methods

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

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

Ord Inet Source # 

Methods

compare :: Inet -> Inet -> Ordering #

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

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

(>) :: Inet -> Inet -> Bool #

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

max :: Inet -> Inet -> Inet #

min :: Inet -> Inet -> Inet #

Show Inet Source # 

Methods

showsPrec :: Int -> Inet -> ShowS #

show :: Inet -> String #

showList :: [Inet] -> ShowS #

newtype Cidr Source #

Constructors

Cidr NetAddress 

Instances

Eq Cidr Source # 

Methods

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

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

Ord Cidr Source # 

Methods

compare :: Cidr -> Cidr -> Ordering #

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

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

(>) :: Cidr -> Cidr -> Bool #

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

max :: Cidr -> Cidr -> Cidr #

min :: Cidr -> Cidr -> Cidr #

Show Cidr Source # 

Methods

showsPrec :: Int -> Cidr -> ShowS #

show :: Cidr -> String #

showList :: [Cidr] -> ShowS #