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.
-
github GitHub.Internal.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]
-
github GitHub.Request Helper for picking between executeRequest and executeRequest'. The use is discouraged.
class
EventHasMaybeSender eventKindgithub-webhooks GitHub.Data.Webhooks.Events Represents an event that may contain its sender information.
-
grisette Grisette.Core No documentation available.
-
grisette Grisette.Core Lift the standard extractSymMaybe to unary type constructors.
-
grisette Grisette.Core Lift the standard extractSymMaybe to binary type constructors.
-
grisette Grisette.Core Generic extractSym function.
-
grisette Grisette.Core Generic liftExtractSymMaybe function.
-
grisette Grisette.Core No documentation available.
-
grisette Grisette.Core Lifts the extractSymMaybe function to unary type constructors.