Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. maybeynopt :: String -> RawOpts -> Maybe Bool

    hledger-lib Hledger.Data.RawOptions

    No documentation available.

  2. maybeNullOrUndefined :: ToJSVal value => value -> JSM (Maybe JSVal)

    jsaddle Language.Javascript.JSaddle.Value

    Convert a JSVal to a Maybe JSVal (converting null and undefined to Nothing)

  3. maybeNullOrUndefined' :: ToJSVal value => (JSVal -> JSM a) -> value -> JSM (Maybe a)

    jsaddle Language.Javascript.JSaddle.Value

    No documentation available.

  4. maybeCompatible :: Eq a => T a -> T a -> Maybe a

    numeric-prelude Number.ResidueClass.Check

    No documentation available.

  5. maybePositive :: (Additive a, MeetSemiLattice a) => a -> Maybe (Positive a)

    numhask NumHask.Data.Positive

    Constructor which returns Nothing if a negative number is supplied.

    >>> maybePositive (-one)
    Nothing
    

  6. maybeLens :: b -> Lens' (Maybe b) b

    proto-lens Data.ProtoLens.Message

    A helper lens for accessing optional fields. This is used as part of code generation, and should generally not be needed explicitly. Note that maybeLens does not satisfy the lens laws, which expect that set l (view l x) == x. For example,

    set (maybeLens 'a') (view (maybeLens 'a') Nothing) == Just 'a'
    
    However, this is the behavior generally expected by users, and only matters if we're explicitly checking whether a field is set.

  7. maybeToEnum :: MessageEnum a => Int -> Maybe a

    proto-lens Data.ProtoLens.Message

    Convert the given Int to an enum value. Returns Nothing if no corresponding value was defined in the .proto file.

  8. maybeToList :: Maybe a -> [a]

    basic-prelude CorePrelude

    The maybeToList function returns an empty list when given Nothing or a singleton list when given Just.

    Examples

    Basic usage:
    >>> maybeToList (Just 7)
    [7]
    
    >>> maybeToList Nothing
    []
    
    One can use maybeToList to avoid pattern matching when combined with a function that (safely) works on lists:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> sum $ maybeToList (readMaybe "3")
    3
    
    >>> sum $ maybeToList (readMaybe "")
    0
    

  9. maybeSelectCurrentEntry :: EventM n (FileBrowser n) ()

    brick Brick.Widgets.FileBrowser

    If the browser's current entry is selectable according to fileBrowserSelectable, add it to the selection set and return. If not, and if the entry is a directory or a symlink targeting a directory, set the browser's current path to the selected directory. Otherwise, return the browser state unchanged.

  10. maybeToList :: Maybe a -> [a]

    classy-prelude ClassyPrelude

    The maybeToList function returns an empty list when given Nothing or a singleton list when given Just.

    Examples

    Basic usage:
    >>> maybeToList (Just 7)
    [7]
    
    >>> maybeToList Nothing
    []
    
    One can use maybeToList to avoid pattern matching when combined with a function that (safely) works on lists:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> sum $ maybeToList (readMaybe "3")
    3
    
    >>> sum $ maybeToList (readMaybe "")
    0
    

Page 44 of many | Previous | Next