Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

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

  1. setEntityId :: FieldDef -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto.Legacy

    Set an entityId to be the given FieldDef.

  2. setEntityIdDef :: EntityIdDef -> EntityDef -> EntityDef

    esqueleto Database.Esqueleto.Legacy

    No documentation available.

  3. toBaseId :: ToBaseId ent => SqlExpr (Value (Key ent)) -> SqlExpr (Value (Key (BaseEnt ent)))

    esqueleto Database.Esqueleto.Legacy

    Convert an entity's key into another entity's. This function is to be used when you change an entity's Id to be that of another entity. For example:

    Bar
    barNum Int
    Foo
    bar BarId
    fooNum Int
    Primary bar
    
    In this example, Bar is said to be the BaseEnt(ity), and Foo the child. To model this in Esqueleto, declare:
    instance ToBaseId Foo where
    type BaseEnt Foo = Bar
    toBaseIdWitness barId = FooKey barId
    
    Now you're able to write queries such as:
    select $
    from $ (bar `InnerJoin` foo) -> do
    on (toBaseId (foo ^. FooId) ==. bar ^. BarId)
    return (bar, foo)
    
    Note: this function may be unsafe to use in conditions not like the one of the example above.

  4. toBaseIdMaybe :: ToBaseId ent => SqlExpr (Value (Maybe (Key ent))) -> SqlExpr (Value (Maybe (Key (BaseEnt ent))))

    esqueleto Database.Esqueleto.Legacy

    Like toBaseId, but works on Maybe keys.

  5. toBaseIdWitness :: ToBaseId ent => Key (BaseEnt ent) -> Key ent

    esqueleto Database.Esqueleto.Legacy

    Convert from the key of the BaseEnt(ity) to the key of the child entity. This function is not actually called, but that it typechecks proves this operation is safe.

  6. threadId :: LaunchedProgram (m :: Type -> Type) -> ThreadId

    essence-of-live-coding LiveCoding

    No documentation available.

  7. discardVoid :: Functor m => ExceptT Void m a -> m a

    essence-of-live-coding LiveCoding.CellExcept

    No documentation available.

  8. threadId :: LaunchedProgram (m :: Type -> Type) -> ThreadId

    essence-of-live-coding LiveCoding.RuntimeIO.Launch

    No documentation available.

  9. deviceID :: FindClause DeviceID

    filemanip System.FilePath.Find

    No documentation available.

  10. fileID :: FindClause FileID

    filemanip System.FilePath.Find

    No documentation available.

Page 961 of many | Previous | Next