diff --git a/src/Database/PostgreSQL.purs b/src/Database/PostgreSQL.purs index 0bd7bb2..3f1c642 100644 --- a/src/Database/PostgreSQL.purs +++ b/src/Database/PostgreSQL.purs @@ -124,6 +124,9 @@ instance toSQLValueInt :: ToSQLValue Int where instance fromSQLValueInt :: FromSQLValue Int where fromSQLValue = fromRight <<< runExcept <<< readInt +instance toSQLValueNumber :: ToSQLValue Number where + toSQLValue = toForeign + instance toSQLValueString :: ToSQLValue String where toSQLValue = toForeign