[commit: ghc] master: Link to oneShot from the User's Guide (1c0b736)

git at git.haskell.org git at git.haskell.org
Mon Nov 3 19:26:25 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1c0b7362068d05b68bd7e05c4d2ef51da9533bf7/ghc

>---------------------------------------------------------------

commit 1c0b7362068d05b68bd7e05c4d2ef51da9533bf7
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Mon Nov 3 20:26:25 2014 +0100

    Link to oneShot from the User's Guide
    
    thanks to Jan for nudging.


>---------------------------------------------------------------

1c0b7362068d05b68bd7e05c4d2ef51da9533bf7
 docs/users_guide/glasgow_exts.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index 7aff1a7..06c1b3b 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -11531,6 +11531,10 @@ allows control over inlining on a per-call-site basis.
 <ulink url="&libraryBaseLocation;/GHC-Exts.html#v%3Alazy"><literal>lazy</literal></ulink>
 restrains the strictness analyser.
 </para></listitem>
+<listitem><para>
+<ulink url="&libraryBaseLocation;/GHC-Exts.html#v%3AoneShot"><literal>oneShot</literal></ulink>
+gives a hint to the compiler about how often a function is being called.
+</para></listitem>
 </itemizedlist>
 </para>
 </sect1>



More information about the ghc-commits mailing list