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. whenJustM :: Monad m => m (Maybe a) -> (a -> m ()) -> m ()

    relude Relude.Monad.Maybe

    Monadic version of whenJust.

    >>> whenJustM (pure Nothing) $ \b -> print (not b)
    
    >>> whenJustM (pure $ Just True) $ \b -> print (not b)
    False
    

  2. isJust :: Maybe a -> Bool

    relude Relude.Monad.Reexport

    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
    

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

    relude Relude.Unsafe

    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. adjustDia :: (Backend b v n, Additive v, Monoid' m, Num n) => b -> Options b v n -> QDiagram b v n m -> (Options b v n, Transformation v n, QDiagram b v n m)

    diagrams-core Diagrams.Core

    adjustDia allows the backend to make adjustments to the final diagram (e.g. to adjust the size based on the options) before rendering it. It returns a modified options record, the transformation applied to the diagram (which can be used to convert attributes whose value is Measure, or transform e.g. screen coordinates back into local diagram coordinates), and the adjusted diagram itself. See the diagrams-lib package (particularly the Diagrams.TwoD.Adjust module) for some useful implementations.

  5. adjustDia :: (Backend b v n, Additive v, Monoid' m, Num n) => b -> Options b v n -> QDiagram b v n m -> (Options b v n, Transformation v n, QDiagram b v n m)

    diagrams-core Diagrams.Core.Types

    adjustDia allows the backend to make adjustments to the final diagram (e.g. to adjust the size based on the options) before rendering it. It returns a modified options record, the transformation applied to the diagram (which can be used to convert attributes whose value is Measure, or transform e.g. screen coordinates back into local diagram coordinates), and the adjusted diagram itself. See the diagrams-lib package (particularly the Diagrams.TwoD.Adjust module) for some useful implementations.

  6. data IsJust (b :: Maybe a) (c :: Bool)

    first-class-families Fcf

    No documentation available.

  7. data IsJust (b :: Maybe a) (c :: Bool)

    first-class-families Fcf.Data.Common

    No documentation available.

  8. adjust :: (a -> a) -> Key a -> Context -> Context

    hs-opentelemetry-api OpenTelemetry.Context

    No documentation available.

  9. adjustContext :: MonadIO m => (Context -> Context) -> m ()

    hs-opentelemetry-api OpenTelemetry.Context.ThreadLocal

    Alter the context on the current thread using the provided function. If there is not a context associated with the current thread, the function will be applied to an empty context and the result will be stored

  10. adjustContextOnThread :: MonadIO m => ThreadId -> (Context -> Context) -> m ()

    hs-opentelemetry-api OpenTelemetry.Context.ThreadLocal

    Alter the context If there is not a context associated with the provided thread, the function will be applied to an empty context and the result will be stored

Page 44 of many | Previous | Next