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. adjustUniqMap :: Uniquable k => (a -> a) -> UniqMap k a -> k -> UniqMap k a

    ghc-lib-parser GHC.Types.Unique.Map

    No documentation available.

  2. unitEnv_adjust :: (v -> v) -> UnitEnvGraphKey -> UnitEnvGraph v -> UnitEnvGraph v

    ghc-lib-parser GHC.Unit.Env

    No documentation available.

  3. catchJust :: Exception e => (e -> Maybe b) -> IO a -> (b -> IO a) -> IO a

    ghc-lib-parser GHC.Utils.Exception

    The function catchJust is like catch, but it takes an extra argument which is an exception predicate, a function which selects which type of exceptions we're interested in.

    catchJust (\e -> if isDoesNotExistErrorType (ioeGetErrorType e) then Just () else Nothing)
    (readFile f)
    (\_ -> do hPutStrLn stderr ("No such file: " ++ show f)
    return "")
    
    Any other exceptions which are not matched by the predicate are re-raised, and may be caught by an enclosing catch, catchJust, etc.

  4. handleJust :: Exception e => (e -> Maybe b) -> (b -> IO a) -> IO a -> IO a

    ghc-lib-parser GHC.Utils.Exception

    A version of catchJust with the arguments swapped around (see handle).

  5. tryJust :: Exception e => (e -> Maybe b) -> IO a -> IO (Either b a)

    ghc-lib-parser GHC.Utils.Exception

    A variant of try that takes an exception predicate to select which exceptions are caught (c.f. catchJust). If the exception does not match the predicate, it is re-thrown.

  6. onJust :: b -> Maybe a -> (a -> b) -> b

    ghc-lib-parser GHC.Utils.Misc

    onJust x m f applies f to the value inside the Just or returns the default.

  7. catchGErrorJust :: GErrorClass err => err -> IO a -> (GErrorMessage -> IO a) -> IO a

    glib System.Glib.GError

    This will catch just a specific GError exception. If you need to catch a range of related errors, catchGErrorJustDomain is probably more appropriate. Example:

    do image <- catchGErrorJust PixbufErrorCorruptImage
    loadImage
    (\errorMessage -> do log errorMessage
    return missingImagePlaceholder)
    

  8. catchGErrorJustDomain :: GErrorClass err => IO a -> (err -> GErrorMessage -> IO a) -> IO a

    glib System.Glib.GError

    Catch all GErrors from a particular error domain. The handler function should just deal with one error enumeration type. If you need to catch errors from more than one error domain, use this function twice with an appropriate handler functions for each.

    catchGErrorJustDomain
    loadImage
    (\err message -> case err of
    PixbufErrorCorruptImage -> ...
    PixbufErrorInsufficientMemory -> ...
    PixbufErrorUnknownType -> ...
    _ -> ...)
    

  9. handleGErrorJust :: GErrorClass err => err -> (GErrorMessage -> IO a) -> IO a -> IO a

    glib System.Glib.GError

    A version of handleGErrorJust with the arguments swapped around.

  10. handleGErrorJustDomain :: GErrorClass err => (err -> GErrorMessage -> IO a) -> IO a -> IO a

    glib System.Glib.GError

    A version of catchGErrorJustDomain with the arguments swapped around.

Page 57 of many | Previous | Next