yesod-ip-0.4.1: Code for using the ip package with yesod
Database.Persist.Net.PostgreSQL
Contents
Description
This module provides orphan instances for data types from the ip package. These instances only work for PostgresSQL. The following PostgreSQL column types are used for each data types:
ip
IPv4
inet
Mac
macaddr
Methods
sqlType :: Proxy * Mac -> SqlType #
sqlType :: Proxy * IPv4 -> SqlType #
toPersistValue :: Mac -> PersistValue #
fromPersistValue :: PersistValue -> Either Text Mac #
toPersistValue :: IPv4 -> PersistValue #
fromPersistValue :: PersistValue -> Either Text IPv4 #