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. fromPersistValue :: PersistField a => PersistValue -> Either Text a

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

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

    persistent-mtl Database.Persist.Sql.Shim

    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
    

  3. fromPersistValueText :: PersistValue -> Either Text Text

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

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

    persistent-mtl Database.Persist.Sql.Shim

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

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

    persistent-mtl Database.Persist.Sql.Shim

    FIXME Add documentation to that.

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

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  7. liftSqlPersistMPool :: forall backend m a . (MonadIO m, BackendCompatible SqlBackend backend) => ReaderT backend (NoLoggingT (ResourceT IO)) a -> Pool backend -> m a

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  8. runSqlPersistM :: BackendCompatible SqlBackend backend => ReaderT backend (NoLoggingT (ResourceT IO)) a -> backend -> IO a

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  9. runSqlPersistMPool :: BackendCompatible SqlBackend backend => ReaderT backend (NoLoggingT (ResourceT IO)) a -> Pool backend -> IO a

    persistent-mtl Database.Persist.Sql.Shim

    No documentation available.

  10. toPersistFields :: PersistEntity record => record -> [PersistValue]

    persistent-mtl Database.Persist.Sql.Shim

    A meta-operation to get the database fields of a record.

Page 52 of many | Previous | Next