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. unionMaybeSubsts :: [Maybe DSubst] -> Maybe DSubst

    th-desugar Language.Haskell.TH.Desugar.Subst

    No documentation available.

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

    HaXml Text.XML.HaXml.XmlContent.Parser

    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]
    

  3. forceMaybe :: Maybe a -> a

    MissingH Data.Maybe.Utils

    Pulls a Just value out of a Maybe value. If the Maybe value is Nothing, raises an exception with error. Alias of fromJust.

  4. forceMaybeMsg :: String -> Maybe a -> a

    MissingH Data.Maybe.Utils

    Like forceMaybe, but lets you customize the error message raised if Nothing is supplied.

  5. cast'Maybe :: Val a => Value -> Maybe (Maybe a)

    bson Data.Bson

    No documentation available.

  6. valMaybe :: Val a => Maybe a -> Value

    bson Data.Bson

    No documentation available.

  7. updateViewStateWithEventMaybe :: Event -> ViewState -> Maybe ViewState

    gloss Graphics.Gloss.Data.ViewState

    Like updateViewStateWithEvent, but returns Nothing if no update was needed.

  8. journalTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> Journal -> Either String Journal

    hledger-lib Hledger.Data.Journal

    Identify and tag (1) equity conversion postings and (2) postings which have (or could have ?) redundant costs. And if the addcosts flag is true, also add any costs which can be inferred from equity conversion postings. This is always called before transaction balancing to tag the redundant-cost postings so they can be ignored. With --infer-costs, it is called again after transaction balancing (when it has more information to work with) to infer costs from equity postings. See transactionTagCostsAndEquityAndMaybeInferCosts for more details, and hledger manual > Cost reporting for more background.

  9. samplejournalMaybeExplicit :: Bool -> Journal

    hledger-lib Hledger.Data.Journal

    No documentation available.

  10. postingAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Posting -> Posting

    hledger-lib Hledger.Data.Posting

    Add the given hidden tag to a posting; and with a true argument, also add the equivalent visible tag to the posting's tags and comment fields. If the posting already has these tags (with any value), do nothing.

Page 179 of many | Previous | Next