Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
$$ ) :: IsDoc doc => doc -> doc -> docghc-lib-parser GHC.Utils.Outputable Join two docs together vertically. If there is no vertical overlap it "dovetails" the two onto one line.
-
ghc-lib-parser GHC.Utils.Outputable Join two SDoc together vertically
-
ghc-lib-parser GHC.Utils.Ppr 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 -
ghc-lib-parser GHC.Utils.Ppr Above, with no overlapping. $+$ is associative, with identity empty.
(
$$ ) :: Expr -> Expr -> Maybe Exprexpress Data.Express O(n). Creates an Expr representing a function application. Just an Expr application if the types match, Nothing otherwise. (cf. :$)
> value "id" (id :: () -> ()) $$ val () Just (id () :: ())
> value "abs" (abs :: Int -> Int) $$ val (1337 :: Int) Just (abs 1337 :: Int)
> value "abs" (abs :: Int -> Int) $$ val 'a' Nothing
> value "abs" (abs :: Int -> Int) $$ val () Nothing
(
$$< ) :: Expr -> [Expr] -> [Expr]express Data.Express Lists valid applications between an Expr and a list of Exprs.
> notE >$$< [false, true, zero] [not False :: Bool,not True :: Bool]
(
$$< ) :: Expr -> [Expr] -> [Expr]express Data.Express.Basic Lists valid applications between an Expr and a list of Exprs.
> notE >$$< [false, true, zero] [not False :: Bool,not True :: Bool]
(
$$ ) :: Expr -> Expr -> Maybe Exprexpress Data.Express.Core O(n). Creates an Expr representing a function application. Just an Expr application if the types match, Nothing otherwise. (cf. :$)
> value "id" (id :: () -> ()) $$ val () Just (id () :: ())
> value "abs" (abs :: Int -> Int) $$ val (1337 :: Int) Just (abs 1337 :: Int)
> value "abs" (abs :: Int -> Int) $$ val 'a' Nothing
> value "abs" (abs :: Int -> Int) $$ val () Nothing
-
foundation Foundation 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.
-
prelude-compat Prelude2010 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.