1 {-# LANGUAGE TypeFamilies #-}
2 module Util
.Persist
where
3 import Database
.Persist
.Class
4 import Database
.Persist
.Types
8 , PersistMonadBackend m ~ PersistEntityBackend val
10 => val
-> m
(Entity val
)
11 insertReturnEntity x
= do
13 return $ Entity
{entityKey
= key
, entityVal
= x
}