Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. adjust :: (Hashable k, Ord k) => (a -> a) -> k -> Map k a -> Map k a

    hashmap Data.HashMap

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

  2. adjustWithKey :: (Hashable k, Ord k) => (k -> a -> a) -> k -> Map k a -> Map k a

    hashmap Data.HashMap

    Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.

  3. adjustMonth :: YearLeap -> Month -> Month

    hebrew-time Data.Time.Calendar.Hebrew.Internal

    No documentation available.

  4. adjustPromise :: forall (n :: Type -> Type) a . Monad n => Promise a -> (a -> a) -> RuntimeSplice n ()

    heist Heist.Compiled.LowLevel

    Modifies a promise.

  5. belongsToJust :: forall ent1 ent2 backend (m :: Type -> Type) . (PersistStoreRead backend, PersistEntity ent1, PersistRecordBackend ent2 backend, MonadIO m) => (ent1 -> Key ent2) -> ent1 -> ReaderT backend m ent2

    hledger-web Hledger.Web.Import

    Same as belongsTo, but uses getJust and therefore is similarly unsafe.

  6. getJust :: forall record backend (m :: Type -> Type) . (PersistStoreRead backend, PersistRecordBackend record backend, MonadIO m) => Key record -> ReaderT backend m record

    hledger-web Hledger.Web.Import

    Same as get, but for a non-null (not Maybe) foreign key. Unsafe unless your database is enforcing that the foreign key is valid.

    Example usage

    With schema-1 and dataset-1,
    getJustSpj :: MonadIO m => ReaderT SqlBackend m User
    getJustSpj = getJust spjId
    
    spj <- getJust spjId
    
    The above query when applied on dataset-1, will get this record:
    +----+------+-----+
    | id | name | age |
    +----+------+-----+
    |  1 | SPJ  |  40 |
    +----+------+-----+
    
    getJustUnknown :: MonadIO m => ReaderT SqlBackend m User
    getJustUnknown = getJust unknownId
    
    mrx <- getJustUnknown This just throws an error.

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

    hledger-web Hledger.Web.Import

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

  8. awaitJust :: forall (m :: Type -> Type) src i . (Monad m, HasError m) => String -> ParserT m src i i

    hpp Hpp.Parser

    await that throws an error with the given message if no more input is available. This may be used to locate where in a processing pipeline input was unexpectedly exhausted.

  9. boolJust :: Bool -> Maybe ()

    hpp Hpp.StringSig

    No documentation available.

  10. predicateJust :: (a -> Bool) -> a -> Maybe a

    hpp Hpp.StringSig

    No documentation available.

Page 134 of many | Previous | Next