Reduce dependency to Persistable.

This commit is contained in:
Kei Hibino 2014-07-29 14:16:35 +09:00
parent ee3e5a3f7e
commit 8657453111

View File

@ -155,7 +155,7 @@ instance (HasColumnConstraint NotNull a, FromSql q a, PersistableType q)
-- | Inference rule of 'RecordFromSql' proof object which can convert
-- from /empty/ list of SQL type ['q'] into Haskell unit () type.
instance FromSql q () where
recordFromSql = recordFromSql'
recordFromSql = RecordFromSql (\qs -> ((), qs))
-- | Run inferred 'RecordFromSql' proof object.
-- Convert from list of SQL type ['q'] into haskell type 'a' and rest of list ['q'].