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.
-
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 | +----+------+-----+
-
ghc GHC.Builtin.Types No documentation available.
mapAdjust :: (v -> v) -> Label -> LabelMap v -> LabelMap vghc GHC.Cmm.Dataflow.Label No documentation available.
adjustEdgeWeight :: CFG -> (EdgeWeight -> EdgeWeight) -> BlockId -> BlockId -> CFGghc GHC.CmmToAsm.CFG Adjust the weight between the blocks using the given function. If there is no such edge returns the original map.
mkJustExpr :: Type -> CoreExpr -> CoreExprghc GHC.Core.Make Makes a Just from a value of the specified type
adjustDTyConEnv :: (a -> a) -> DTyConEnv a -> TyCon -> DTyConEnv aghc GHC.Core.TyCon.Env No documentation available.
expectJust :: HasCallStack => String -> Maybe a -> aghc GHC.Data.Maybe No documentation available.
firstJust :: Maybe a -> Maybe a -> Maybe aghc GHC.Data.Maybe No documentation available.
firstJusts :: Foldable f => f (Maybe a) -> Maybe aghc GHC.Data.Maybe Takes a list of Maybes and returns the first Just if there is one, or Nothing otherwise.
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.