diff options
author | Yuchen Pei <hi@ypei.me> | 2022-07-21 12:27:19 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-07-21 12:27:19 +1000 |
commit | 32ac0f03b4259fc8eebba9bb3a2a46d23122a43b (patch) | |
tree | a371fb9c5a3f78e6f53c66d70e1255fdc71bba4d /hoogle-test | |
parent | cd17128898089450bb21790fd1864dc08fd4ddbc (diff) | |
parent | 2368e9329e6600b46000abd24ec00b7e27bcae75 (diff) |
Merge remote-tracking branch 'upstream/ghc-9.4' into ghc-9.4
Diffstat (limited to 'hoogle-test')
-rw-r--r-- | hoogle-test/ref/Bug873/test.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/hoogle-test/ref/Bug873/test.txt b/hoogle-test/ref/Bug873/test.txt new file mode 100644 index 00000000..5e1117a4 --- /dev/null +++ b/hoogle-test/ref/Bug873/test.txt @@ -0,0 +1,27 @@ +-- Hoogle documentation, generated by Haddock +-- See Hoogle, http://www.haskell.org/hoogle/ + +@package test +@version 0.0.0 + +module Bug873 + +-- | Application operator. This operator is redundant, since ordinary +-- application <tt>(f x)</tt> means the same as <tt>(f <a>$</a> x)</tt>. +-- However, <a>$</a> has low, right-associative binding precedence, so it +-- sometimes allows parentheses to be omitted; for example: +-- +-- <pre> +-- f $ g $ h x = f (g (h x)) +-- </pre> +-- +-- It is also useful in higher-order situations, such as <tt><a>map</a> +-- (<a>$</a> 0) xs</tt>, or <tt><a>zipWith</a> (<a>$</a>) fs xs</tt>. +-- +-- Note that <tt>(<a>$</a>)</tt> is representation-polymorphic in its +-- result type, so that <tt>foo <a>$</a> True</tt> where <tt>foo :: Bool +-- -> Int#</tt> is well-typed. +($) :: forall (r :: RuntimeRep) a (b :: TYPE r). (a -> b) -> a -> b +infixr 0 $ +($$) :: (a -> b) -> a -> b +infixr 0 $$ |