Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. keyValueEntityFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    esqueleto Database.Esqueleto.Legacy

    Predefined parseJSON. The input JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:

    instance FromJSON (Entity User) where
    parseJSON = keyValueEntityFromJSON
    

  2. keyValueEntityToJSON :: (PersistEntity record, ToJSON record) => Entity record -> Value

    esqueleto Database.Esqueleto.Legacy

    Predefined toJSON. The resulting JSON looks like {"key": 1, "value": {"name": ...}}. The typical usage is:

    instance ToJSON (Entity User) where
    toJSON = keyValueEntityToJSON
    

  3. persistUniqueToValues :: PersistEntity record => Unique record -> [PersistValue]

    esqueleto Database.Esqueleto.Legacy

    A lower level operation.

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

    esqueleto Database.Esqueleto.Legacy

    No documentation available.

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

    esqueleto Database.Esqueleto.Legacy

    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
    

  6. unValue :: Value a -> a

    esqueleto Database.Esqueleto.Legacy

    No documentation available.

  7. jsonbVal :: (FromJSON a, ToJSON a) => a -> JSONBExpr a

    esqueleto Database.Esqueleto.PostgreSQL.JSON

    Convenience function to lift a regular value into a JSONB expression.

Page 12 of many | Previous | Next