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. maybeCompatible :: Eq a => T a -> T a -> Maybe a

    numeric-prelude Number.ResidueClass.Check

    No documentation available.

  2. 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
    

  3. 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
    

  4. 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.

  5. 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
    

  6. maybeArray :: (PersistField a, PersistField [a]) => SqlExpr (Value (Maybe [a])) -> SqlExpr (Value [a])

    esqueleto Database.Esqueleto.PostgreSQL

    Coalesce an array with an empty default value

  7. maybePop :: Maybe a -> [BufferCommand b]

    essence-of-live-coding LiveCoding.Cell.Util

    Pops on Just a and does nothing on Nothing.

  8. maybePush :: Maybe a -> [BufferCommand a]

    essence-of-live-coding LiveCoding.Cell.Util

    Pushes Just a and does nothing on Nothing.

  9. maybeMigrateFromExceptState :: (Typeable state, Typeable state') => ExceptState state e -> Maybe state'

    essence-of-live-coding LiveCoding.Migrate.Cell

    No documentation available.

  10. maybeMigrateFromPair :: (Typeable a, Typeable b, Typeable c) => (t a b -> a) -> (t a b -> b) -> t a b -> Maybe c

    essence-of-live-coding LiveCoding.Migrate.Cell

    Like maybeMigrateToPair, but in the other direction. Again, it is biased with respect to the first element of the pair.

Page 45 of many | Previous | Next