Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
classy-prelude-yesod ClassyPrelude.Yesod 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 | +----+------+-----+
handleJust :: (MonadUnliftIO m, Exception e) => (e -> Maybe b) -> (b -> m a) -> m a -> m aclassy-prelude-yesod ClassyPrelude.Yesod Flipped catchJust.
-
classy-prelude-yesod ClassyPrelude.Yesod The isJust function returns True iff its argument is of the form Just _.
Examples
Basic usage:>>> isJust (Just 3) True
>>> isJust (Just ()) True
>>> isJust Nothing False
Only the outer constructor is taken into consideration:>>> isJust (Just Nothing) True
tryJust :: (MonadUnliftIO m, Exception e) => (e -> Maybe b) -> m a -> m (Either b a)classy-prelude-yesod ClassyPrelude.Yesod A variant of try that takes an exception predicate to select which exceptions are caught.
adjust_dbVol :: [String] -> Float -> [String]dobutokO2 DobutokO.Sound.Functional.Basics Is used internally in the readProcessWithExitCode to adjust volume for the sound with additional dB value given by Float argument.
ensureIsJust :: Maybe a -> ErrorOr ()error-or-utils Data.ErrorOr.Validation No documentation available.
adjustEdgeWeight :: CFG -> (EdgeWeight -> EdgeWeight) -> BlockId -> BlockId -> CFGghc-lib GHC.CmmToAsm.CFG Adjust the weight between the blocks using the given function. If there is no such edge returns the original map.
adjustMatchResultDs :: (a -> DsM b) -> MatchResult a -> MatchResult bghc-lib GHC.HsToCore.Utils No documentation available.
-
ghc-lib GHC.StgToCmm.Layout No documentation available.
adjustStepChanges :: TrainingOptions -> Maybe Boolgogol-bigquery Gogol.BigQuery If true, detect step changes and make data adjustment in the input time series.