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.

  1. toPersistValue :: PersistField a => a -> PersistValue

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  2. toPersistValueJSON :: ToJSON a => a -> PersistValue

    persistent-mtl Database.Persist.Sql.Shim

    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
    

  3. class HasPersistBackend backend

    persistent-redis Database.Persist.Redis

    Class which allows the plucking of a BaseBackend backend from some larger type. For example, instance HasPersistBackend (SqlReadBackend, Int) where type BaseBackend (SqlReadBackend, Int) = SqlBackend persistBackend = unSqlReadBackend . fst

  4. class HasPersistBackend backend => IsPersistBackend backend

    persistent-redis Database.Persist.Redis

    Class which witnesses that backend is essentially the same as BaseBackend backend. That is, they're isomorphic and backend is just some wrapper over BaseBackend backend.

  5. fromPersistValue :: PersistField a => PersistValue -> Either Text a

    persistent-redis Database.Persist.Redis

    No documentation available.

  6. fromPersistValueJSON :: FromJSON a => PersistValue -> Either Text a

    persistent-redis Database.Persist.Redis

    Convenience function for getting a free PersistField instance from a type with JSON instances. The JSON parser used will accept JSON values other that object and arrays. So, if your instance serializes the data to a JSON string, this will still work. Example usage in combination with toPersistValueJSON:

    instance PersistField MyData where
    fromPersistValue = fromPersistValueJSON
    toPersistValue = toPersistValueJSON
    

  7. fromPersistValueText :: PersistValue -> Either Text Text

    persistent-redis Database.Persist.Redis

    No documentation available.

  8. fromPersistValues :: PersistEntity record => [PersistValue] -> Either Text record

    persistent-redis Database.Persist.Redis

    A lower-level operation to convert from database values to a Haskell record.

  9. getPersistMap :: PersistValue -> Either Text [(Text, PersistValue)]

    persistent-redis Database.Persist.Redis

    FIXME Add documentation to that.

  10. liftPersist :: (MonadIO m, MonadReader backend m) => ReaderT backend IO b -> m b

    persistent-redis Database.Persist.Redis

    No documentation available.

Page 53 of many | Previous | Next