Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toPersistFields :: PersistEntity record => record -> [PersistValue]persistent-redis Database.Persist.Redis A meta-operation to get the database fields of a record.
toPersistValue :: PersistField a => a -> PersistValuepersistent-redis Database.Persist.Redis No documentation available.
toPersistValueJSON :: ToJSON a => a -> PersistValuepersistent-redis Database.Persist.Redis Convenience function for getting a free PersistField instance from a type with JSON instances. Example usage in combination with fromPersistValueJSON:
instance PersistField MyData where fromPersistValue = fromPersistValueJSON toPersistValue = toPersistValueJSON
type
SqlPersistMFor db = ReaderT SqlFor db NoLoggingT ResourceT IOpersistent-typed-db Database.Persist.Typed A specialization of SqlPersistM that uses the underlying db database type.
type
SqlPersistTFor db = ReaderT SqlFor dbpersistent-typed-db Database.Persist.Typed This type signature represents a database query for a specific database. You will likely want to specialize this to your own application for readability:
data MainDb type MainQueryT = SqlPersistTFor MainDb getStuff :: MonadIO m => StuffId -> MainQueryT m (Maybe Stuff)