Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

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

  1. type LIdP p = XRec p IdP p

    ghc Language.Haskell.Syntax.Extension

    No documentation available.

  2. type family XIdSig x

    ghc Language.Haskell.Syntax.Extension

    No documentation available.

  3. entityIdFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    persistent Database.Persist.Class

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

    instance FromJSON (Entity User) where
    parseJSON = entityIdFromJSON
    

  4. entityIdToJSON :: (PersistEntity record, ToJSON record) => Entity record -> Value

    persistent Database.Persist.Class

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

    instance ToJSON (Entity User) where
    toJSON = entityIdToJSON
    

  5. persistIdField :: PersistEntity record => EntityField record (Key record)

    persistent Database.Persist.Class

    A meta-operation to retrieve the Key EntityField.

  6. entityIdFromJSON :: (PersistEntity record, FromJSON record) => Value -> Parser (Entity record)

    persistent Database.Persist.Class.PersistEntity

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

    instance FromJSON (Entity User) where
    parseJSON = entityIdFromJSON
    

  7. entityIdToJSON :: (PersistEntity record, ToJSON record) => Entity record -> Value

    persistent Database.Persist.Class.PersistEntity

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

    instance ToJSON (Entity User) where
    toJSON = entityIdToJSON
    

  8. persistIdField :: PersistEntity record => EntityField record (Key record)

    persistent Database.Persist.Class.PersistEntity

    A meta-operation to retrieve the Key EntityField.

  9. data EntityIdDef

    persistent Database.Persist.EntityDef

    The definition for the entity's primary key ID.

  10. EntityIdField :: FieldDef -> EntityIdDef

    persistent Database.Persist.EntityDef

    The entity has a single key column, and it is a surrogate key - that is, you can't go from rec -> Key rec.

Page 594 of many | Previous | Next