Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
!$$? ) :: Match a -> CaptureID -> Maybe aregex Text.RE.Replace an alternative for captureTextMaybe
(
!$? ) :: Match a -> CaptureID -> Maybe (Capture a)regex Text.RE.Replace an alternative for capture captureMaybe
-
row-types Data.Row.Records This function allows one to do partial application on a function of a record. Note that this also means that arguments can be supplied in arbitrary order. For instance, if one had a function like
xtheny r = (r .! #x) <> (r .! #y)
and a record likegreeting = #x .== "hello " .+ #y .== "world!"
Then all of the following would be possible:>>> xtheny greeting "hello world!"
>>> xtheny .$ (#x, greeting) .$ (#y, greeting) $ empty "hello world!"
>>> xtheny .$ (#y, greeting) .$ (#x, greeting) $ empty "hello world!"
>>> xtheny .$ (#y, greeting) .$ (#x, #x .== "Goodbye ") $ empty "Goodbye world!"
(
<$: ) :: (CFunctor f, Dom f a, Dom f b) => a -> f b -> f asubcategories Control.Subcategory.Functor No documentation available.
(
<$:> ) :: (CFunctor f, Dom f a, Dom f b) => (a -> b) -> f a -> f bsubcategories Control.Subcategory.Functor No documentation available.
-
type-level-show TypeLevelShow.Doc No documentation available.
(
:$$: ) :: Doc s -> Doc s -> Doc stype-level-show TypeLevelShow.Doc stack docs on top of each other (newline)
-
type-level-show TypeLevelShow.Doc No documentation available.
(
?$> ) :: Alternative f => Bool -> a -> f aAgda Agda.Utils.Applicative Guard: return the value a only if the boolean is True
(
<$> ) :: Functor f => (a -> b) -> f a -> f bAgda Agda.Utils.Functor An infix synonym for fmap. The name of this operator is an allusion to $. Note the similarities between their types:
($) :: (a -> b) -> a -> b (<$>) :: Functor f => (a -> b) -> f a -> f b
Whereas $ is function application, <$> is function application lifted over a Functor.Examples
Convert from a Maybe Int to a Maybe String using show:>>> show <$> Nothing Nothing
>>> show <$> Just 3 Just "3"
Convert from an Either Int Int to an Either Int String using show:>>> show <$> Left 17 Left 17
>>> show <$> Right 17 Right "17"
Double each element of a list:>>> (*2) <$> [1,2,3] [2,4,6]
Apply even to the second element of a pair:>>> even <$> (2,2) (2,True)