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. handleJust :: Exception e => (e -> Maybe b) -> (b -> IO a) -> IO a -> IO a

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

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

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

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

    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.

  3. fromJust :: HasCallStack => Maybe a -> a

    ghc-internal GHC.Internal.Data.Maybe

    The fromJust function extracts the element out of a Just and throws an error if its argument is Nothing.

    Examples

    Basic usage:
    >>> fromJust (Just 1)
    1
    
    >>> 2 * (fromJust (Just 10))
    20
    
    >>> 2 * (fromJust Nothing)
    *** Exception: Maybe.fromJust: Nothing
    ...
    
    WARNING: This function is partial. You can use case-matching instead.

  4. isJust :: Maybe a -> Bool

    ghc-internal GHC.Internal.Data.Maybe

    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
    

  5. bufferAdjustL :: Int -> Buffer e -> Buffer e

    ghc-internal GHC.Internal.IO.Buffer

    No documentation available.

  6. bufferAdjustOffset :: Word64 -> Buffer e -> Buffer e

    ghc-internal GHC.Internal.IO.Buffer

    No documentation available.

  7. layoutGetJustify :: (HasCallStack, MonadIO m, IsLayout a) => a -> m Bool

    gi-pango GI.Pango.Objects.Layout

    Gets whether each complete line should be stretched to fill the entire width of the layout.

  8. layoutGetJustifyLastLine :: (HasCallStack, MonadIO m, IsLayout a) => a -> m Bool

    gi-pango GI.Pango.Objects.Layout

    Gets whether the last line should be stretched to fill the entire width of the layout. Since: 1.50

  9. layoutSetJustify :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()

    gi-pango GI.Pango.Objects.Layout

    Sets whether each complete line should be stretched to fill the entire width of the layout. Stretching is typically done by adding whitespace, but for some scripts (such as Arabic), the justification may be done in more complex ways, like extending the characters. Note that this setting is not implemented and so is ignored in Pango older than 1.18. Note that tabs and justification conflict with each other: Justification will move content away from its tab-aligned positions. The default value is False. Also see layoutSetJustifyLastLine.

  10. layoutSetJustifyLastLine :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()

    gi-pango GI.Pango.Objects.Layout

    Sets whether the last line should be stretched to fill the entire width of the layout. This only has an effect if layoutSetJustify has been called as well. The default value is False. Since: 1.50

Page 48 of many | Previous | Next