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. xF86XK_ContrastAdjust :: KeySym

    X11 Graphics.X11.ExtraTypes.XF86

    No documentation available.

  2. adjust :: Enum k => (a -> a) -> k -> EnumMap k a -> EnumMap k a

    enummapset Data.EnumMap.Lazy

    No documentation available.

  3. adjustWithKey :: Enum k => (k -> a -> a) -> k -> EnumMap k a -> EnumMap k a

    enummapset Data.EnumMap.Lazy

    No documentation available.

  4. adjust :: Enum k => (a -> a) -> k -> EnumMap k a -> EnumMap k a

    enummapset Data.EnumMap.Strict

    No documentation available.

  5. adjustWithKey :: Enum k => (k -> a -> a) -> k -> EnumMap k a -> EnumMap k a

    enummapset Data.EnumMap.Strict

    No documentation available.

  6. adjust :: (e -> a -> e) -> MutableArray# s e -> (Int, a) -> STRep s b -> STRep s b

    ghc-internal GHC.Internal.Arr

    No documentation available.

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

    ghc-internal GHC.Internal.Control.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.

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

    ghc-internal GHC.Internal.Control.Exception

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

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

    ghc-internal GHC.Internal.Control.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.

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

    ghc-internal GHC.Internal.Control.Exception.Base

    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.

Page 47 of many | Previous | Next