Update with renamed TH function.

This commit is contained in:
Kei Hibino 2013-05-16 16:01:14 +09:00
parent 3ba25c618f
commit fa205b3381

View File

@ -17,7 +17,7 @@ import Data.Convertible (Convertible)
import Database.HDBC (SqlValue)
import Database.HDBC.SqlValueExtra ()
import Database.Record (PersistableWidth)
import Database.Record.TH (deriveNotNullValue)
import Database.Record.TH (deriveNotNullType)
import Database.Record.Instances ()
import Database.HDBC.Record.TH (derivePersistableInstanceFromValue)
@ -87,6 +87,6 @@ derivePersistableInstancesFromConvertibleSqlValues :: Q [Dec]
derivePersistableInstancesFromConvertibleSqlValues = do
wds <- persistableWidthValues
svs <- convertibleSqlValues
ws <- mapInstanceD deriveNotNullValue (toList $ Set.difference svs wds)
ws <- mapInstanceD deriveNotNullType (toList $ Set.difference svs wds)
ps <- mapInstanceD derivePersistableInstanceFromValue (toList svs)
return $ ws ++ ps