Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

    persistent Database.Persist.Class

    No documentation available.

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

    persistent Database.Persist.Class

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

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

    persistent Database.Persist.Class

    No documentation available.

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

    persistent Database.Persist.Class

    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
    

  5. newtype ViaPersistEntity record

    persistent Database.Persist.Class.PersistEntity

    Newtype wrapper for optionally deriving typeclass instances on PersistEntity keys.

  6. ViaPersistEntity :: Key record -> ViaPersistEntity record

    persistent Database.Persist.Class.PersistEntity

    No documentation available.

  7. fromPersistValueEnum :: (Enum a, Bounded a) => PersistValue -> Either Text a

    persistent Database.Persist.Class.PersistEntity

    Convenience function for getting a free PersistField instance from a type with an Enum instance. This function also requires a Bounded instance to improve the reporting of errors. Example usage in combination with toPersistValueEnum:

    data SeverityLevel = Low | Medium | Critical | High
    deriving (Enum, Bounded)
    instance PersistField SeverityLevel where
    fromPersistValue = fromPersistValueEnum
    toPersistValue = toPersistValueEnum
    

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

    persistent Database.Persist.Class.PersistEntity

    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
    

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

    persistent Database.Persist.Class.PersistEntity

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

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

    persistent Database.Persist.Class.PersistEntity

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

Page 42 of many | Previous | Next