Hoogle Search

Within LTS Haskell 24.20 (ghc-9.10.3)

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

  1. getJustEntity :: forall record backend (m :: Type -> Type) . (PersistEntityBackend record ~ BaseBackend backend, MonadIO m, PersistEntity record, PersistStoreRead backend) => Key record -> ReaderT backend m (Entity record)

    persistent Database.Persist.Class.PersistStore

    Same as getJust, but returns an Entity instead of just the record.

    Example usage

    With schema-1 and dataset-1,
    getJustEntitySpj :: MonadIO m => ReaderT SqlBackend m (Entity User)
    getJustEntitySpj = getJustEntity spjId
    
    spjEnt <- getJustEntitySpj
    
    The above query when applied on dataset-1, will get this entity:
    +----+------+-----+
    | id | name | age |
    +----+------+-----+
    |  1 | SPJ  |  40 |
    +----+------+-----+
    

  2. promotedJustDataCon :: TyCon

    ghc GHC.Builtin.Types

    No documentation available.

  3. mapAdjust :: (v -> v) -> Label -> LabelMap v -> LabelMap v

    ghc GHC.Cmm.Dataflow.Label

    No documentation available.

  4. adjustEdgeWeight :: CFG -> (EdgeWeight -> EdgeWeight) -> BlockId -> BlockId -> CFG

    ghc GHC.CmmToAsm.CFG

    Adjust the weight between the blocks using the given function. If there is no such edge returns the original map.

  5. mkJustExpr :: Type -> CoreExpr -> CoreExpr

    ghc GHC.Core.Make

    Makes a Just from a value of the specified type

  6. adjustDTyConEnv :: (a -> a) -> DTyConEnv a -> TyCon -> DTyConEnv a

    ghc GHC.Core.TyCon.Env

    No documentation available.

  7. expectJust :: HasCallStack => String -> Maybe a -> a

    ghc GHC.Data.Maybe

    No documentation available.

  8. firstJust :: Maybe a -> Maybe a -> Maybe a

    ghc GHC.Data.Maybe

    No documentation available.

  9. firstJusts :: Foldable f => f (Maybe a) -> Maybe a

    ghc GHC.Data.Maybe

    Takes a list of Maybes and returns the first Just if there is one, or Nothing otherwise.

  10. firstJustsM :: (Monad m, Foldable f) => f (m (Maybe a)) -> m (Maybe a)

    ghc GHC.Data.Maybe

    Takes computations returnings Maybes; tries each one in order. The first one to return a Just wins. Returns Nothing if all computations return Nothing.

Page 35 of many | Previous | Next