mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 13:52:12 +03:00
Reduce dependency to Persistable.
This commit is contained in:
parent
ee3e5a3f7e
commit
8657453111
@ -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'].
|
||||
|
Loading…
Reference in New Issue
Block a user