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.

  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)

    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 |
    +----+------+-----+
    

  2. handleJust :: (MonadUnliftIO m, Exception e) => (e -> Maybe b) -> (b -> m a) -> m a -> m a

    classy-prelude-yesod ClassyPrelude.Yesod

    Flipped catchJust.

  3. isJust :: Maybe a -> Bool

    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
    

  4. 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.

  5. 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.

  6. ensureIsJust :: Maybe a -> ErrorOr ()

    error-or-utils Data.ErrorOr.Validation

    No documentation available.

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

    ghc-lib GHC.CmmToAsm.CFG

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

  8. adjustMatchResultDs :: (a -> DsM b) -> MatchResult a -> MatchResult b

    ghc-lib GHC.HsToCore.Utils

    No documentation available.

  9. adjustHpBackwards :: FCode ()

    ghc-lib GHC.StgToCmm.Layout

    No documentation available.

  10. adjustStepChanges :: TrainingOptions -> Maybe Bool

    gogol-bigquery Gogol.BigQuery

    If true, detect step changes and make data adjustment in the input time series.

Page 158 of many | Previous | Next