[commit: ghc] wip/type-app: User manual wibbles (b346f48)
git at git.haskell.org
git at git.haskell.org
Sat Aug 8 18:25:34 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/type-app
Link : http://ghc.haskell.org/trac/ghc/changeset/b346f486811f6bdf8ac5cad16434f51bba64d65e/ghc
>---------------------------------------------------------------
commit b346f486811f6bdf8ac5cad16434f51bba64d65e
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Sat Aug 8 14:26:50 2015 -0400
User manual wibbles
>---------------------------------------------------------------
b346f486811f6bdf8ac5cad16434f51bba64d65e
docs/users_guide/7.12.1-notes.xml | 7 ++++---
docs/users_guide/glasgow_exts.xml | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/docs/users_guide/7.12.1-notes.xml b/docs/users_guide/7.12.1-notes.xml
index b80db1d..bdab650 100644
--- a/docs/users_guide/7.12.1-notes.xml
+++ b/docs/users_guide/7.12.1-notes.xml
@@ -72,9 +72,10 @@
</listitem>
<listitem>
<para>
- GHC now supports visible type application, allowing programmers
- to easily specify how type parameters should be instantiated
- when calling a function. See <xref linkend="visible-type-application"/> for the details.
+ GHC now supports visible type application, allowing
+ programmers to easily specify how type parameters should be
+ instantiated when calling a function. See <xref
+ linkend="visible-type-application"/> for the details.
</para>
</listitem>
<listitem>
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index ec13dbf..16d2024 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -2622,7 +2622,7 @@ to allow the import or export of a data constructor without its parent type cons
<para>The <option>-XTypeApplications</option> extension allows you to use
<emphasis>visible type application</emphasis> in expressions. Here is an
-example: <literal>show (read @Int 5)</literal>. The <literal>@Int</literal>
+example: <literal>show (read @Int "5")</literal>. The <literal>@Int</literal>
is the visible type application; it specifies the value of the type variable
in <literal>read</literal>'s type.</para>
More information about the ghc-commits
mailing list