Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

  1. catMaybes :: List l => l (Maybe a) -> l a

    List Data.List.Class

    No documentation available.

  2. mapMaybe :: List l => (a -> Maybe b) -> l a -> l b

    List Data.List.Class

    No documentation available.

  3. SchemaMaybe :: SchemaType' s ty -> SchemaType' s ty

    aeson-schemas Data.Aeson.Schema.Type

    No documentation available.

  4. addMaybeProxy :: Maybe Proxy -> Request -> Request

    authenticate-oauth Web.Authenticate.OAuth

    No documentation available.

  5. addMaybeProxy :: Maybe Proxy -> Request -> Request

    authenticate-oauth Web.Authenticate.OAuth.IO

    No documentation available.

  6. bumpMaybe :: a -> (a -> b -> b) -> (a -> b) -> Maybe b -> Maybe b

    backprop Numeric.Backprop.Internal

    No documentation available.

  7. mapMaybe :: (a -> Maybe b) -> Trie a -> Maybe (Trie b)

    bcp47 Data.BCP47.Trie

    No documentation available.

  8. mapMaybe :: (a -> Maybe b) -> Trie a -> Maybe (Trie b)

    bcp47 Data.BCP47.Trie.Internal

    No documentation available.

  9. mapMaybe2 :: (a -> Maybe b) -> Trie2 a -> Maybe (Trie2 b)

    bcp47 Data.BCP47.Trie.Internal

    No documentation available.

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

    cabal-install-solver Distribution.Solver.Compat.Prelude

    The catMaybes function takes a list of Maybes and returns a list of all the Just values.

    Examples

    Basic usage:
    >>> catMaybes [Just 1, Nothing, Just 3]
    [1,3]
    
    When constructing a list of Maybe values, catMaybes can be used to return all of the "success" results (if the list is the result of a map, then mapMaybe would be more appropriate):
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> [readMaybe x :: Maybe Int | x <- ["1", "Foo", "3"] ]
    [Just 1,Nothing,Just 3]
    
    >>> catMaybes $ [readMaybe x :: Maybe Int | x <- ["1", "Foo", "3"] ]
    [1,3]
    

Page 238 of many | Previous | Next