yesod-persistent-0.1.0: Some helpers for using Persistent from Yesod.

Yesod.Persist

Documentation

class YesodPersist y whereSource

Associated Types

type YesodDB y :: (* -> *) -> * -> *Source

Methods

runDB :: YesodDB y (GGHandler sub y IO) a -> GHandler sub y aSource

get404 :: (PersistBackend (t m), PersistEntity val, Monad (t m), Failure ErrorResponse m, MonadTrans t) => Key val -> t m valSource

getBy404 :: (PersistBackend (t m), PersistEntity val, Monad (t m), Failure ErrorResponse m, MonadTrans t) => Unique val -> t m (Key val, val)Source