Link to oneShot from the User's Guide
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 3 Nov 2014 19:26:25 +0000 (20:26 +0100)
committerJoachim Breitner <mail@joachim-breitner.de>
Mon, 3 Nov 2014 19:26:25 +0000 (20:26 +0100)
thanks to Jan for nudging.

docs/users_guide/glasgow_exts.xml

index 7aff1a7..06c1b3b 100644 (file)
@@ -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>