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.
-
pretty Text.PrettyPrint Above, except that if the last line of the first argument stops at least one position before the first line of the second begins, these two lines are overlapped. For example:
text "hi" $$ nest 5 (text "there")
lays out ashi there
rather thanhi there
$$ is associative, with identity empty, and also satisfies -
pretty Text.PrettyPrint Above, with no overlapping. $+$ is associative, with identity empty.
(
$$ ) :: Doc a -> Doc a -> Doc apretty Text.PrettyPrint.Annotated Above, except that if the last line of the first argument stops at least one position before the first line of the second begins, these two lines are overlapped. For example:
text "hi" $$ nest 5 (text "there")
lays out ashi there
rather thanhi there
$$ is associative, with identity empty, and also satisfies(
$+$ ) :: Doc a -> Doc a -> Doc apretty Text.PrettyPrint.Annotated Above, with no overlapping. $+$ is associative, with identity empty.
(
$$ ) :: Doc a -> Doc a -> Doc apretty Text.PrettyPrint.Annotated.HughesPJ Above, except that if the last line of the first argument stops at least one position before the first line of the second begins, these two lines are overlapped. For example:
text "hi" $$ nest 5 (text "there")
lays out ashi there
rather thanhi there
$$ is associative, with identity empty, and also satisfies(
$+$ ) :: Doc a -> Doc a -> Doc apretty Text.PrettyPrint.Annotated.HughesPJ Above, with no overlapping. $+$ is associative, with identity empty.
-
pretty Text.PrettyPrint.HughesPJ Above, except that if the last line of the first argument stops at least one position before the first line of the second begins, these two lines are overlapped. For example:
text "hi" $$ nest 5 (text "there")
lays out ashi there
rather thanhi there
$$ is associative, with identity empty, and also satisfies -
pretty Text.PrettyPrint.HughesPJ Above, with no overlapping. $+$ is associative, with identity empty.
-
hedgehog Hedgehog.Internal.Prelude Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.
(
$> ) :: Functor f => f a -> b -> f bsemigroupoids Data.Functor.Apply Flipped version of <$.
Examples
Replace the contents of a Maybe Int with a constant String:>>> Nothing $> "foo" Nothing
>>> Just 90210 $> "foo" Just "foo"
Replace the contents of an Either Int Int with a constant String, resulting in an Either Int String:>>> Left 8675309 $> "foo" Left 8675309
>>> Right 8675309 $> "foo" Right "foo"
Replace each element of a list with a constant String:>>> [1,2,3] $> "foo" ["foo","foo","foo"]
Replace the second element of a pair with a constant String:>>> (1,2) $> "foo" (1,"foo")