postgresql-typed-0.4.2.2: A PostgreSQL access library with compile-time SQL type inference

Copyright2015 Dylan Simon
Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.Typed.Inet

Description

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

Synopsis

Documentation

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.