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.
unionMaybeSubsts :: [Maybe DSubst] -> Maybe DSubstth-desugar Language.Haskell.TH.Desugar.Subst No documentation available.
-
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]
-
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.
forceMaybeMsg :: String -> Maybe a -> aMissingH Data.Maybe.Utils Like forceMaybe, but lets you customize the error message raised if Nothing is supplied.
cast'Maybe :: Val a => Value -> Maybe (Maybe a)bson Data.Bson No documentation available.
valMaybe :: Val a => Maybe a -> Valuebson Data.Bson No documentation available.
updateViewStateWithEventMaybe :: Event -> ViewState -> Maybe ViewStategloss Graphics.Gloss.Data.ViewState Like updateViewStateWithEvent, but returns Nothing if no update was needed.
journalTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> Journal -> Either String Journalhledger-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.
samplejournalMaybeExplicit :: Bool -> Journalhledger-lib Hledger.Data.Journal No documentation available.
postingAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Posting -> Postinghledger-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.