Makes Array Foreign an instance of ToSQLRow

For when the user wants to convert the values to foreign by themselves.
This commit is contained in:
Abhinav Sarkar 2017-10-06 19:03:22 +05:30 committed by GitHub
parent 97583e0cc8
commit 4178f9005e

View File

@ -14,6 +14,9 @@ class ToSQLRow a where
class FromSQLRow a where
fromSQLRow :: Array Foreign -> Either String a
instance toSQLRowForeignArray :: ToSQLRow (Array Foreign) where
toSQLRow = id
-- | A row with 0 fields.
data Row0 = Row0