postgresql-typed-0.4.5: A PostgreSQL library with compile-time SQL type inference and optional HDBC backend

Copyright2015 Dylan Simon
Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.Typed.Inet

Contents

Description

Representaion of PostgreSQL's inet/cidr types using Network.Socket. We don't (yet) supply PGColumn (parsing) instances.

Synopsis

Documentation

data PGInet Source #

Instances

bton32 :: (Word8, Word8, Word8, Word8) -> Word32 Source #

Convert four bytes to network byte order, using unsafe casting. byteSwap32 would be better, but I couldn't find a good way to determine host byte order.

Orphan instances