| Copyright | 2015 Dylan Simon |
|---|---|
| Safe Haskell | None |
| Language | Haskell98 |
Database.PostgreSQL.Typed.Inet
Description
Representaion of PostgreSQL's inet/cidr types using Network.Socket. We don't (yet) supply PGColumn (parsing) instances.
- data PGInet
- = PGInet {
- pgInetAddr :: !HostAddress
- pgInetMask :: !Word8
- | PGInet6 {
- pgInetAddr6 :: !HostAddress6
- pgInetMask :: !Word8
- = PGInet {
- sockAddrPGInet :: SockAddr -> Maybe PGInet
- bton32 :: (Word8, Word8, Word8, Word8) -> Word32
Documentation
Constructors
| PGInet | |
Fields
| |
| PGInet6 | |
Fields
| |
sockAddrPGInet :: SockAddr -> Maybe PGInet Source