[commit: ghc] master: Fix user guide documentation about unboxed values (94ab5d2)

git at git.haskell.org git at git.haskell.org
Tue Sep 24 23:03:51 CEST 2013


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/94ab5d2984514f92dd919fbf3611a07d32105546/ghc

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

commit 94ab5d2984514f92dd919fbf3611a07d32105546
Author: Arash Rouhani <rarash at student.chalmers.se>
Date:   Tue Sep 24 22:06:18 2013 +0200

    Fix user guide documentation about unboxed values
    
    Signed-off-by: Arash Rouhani <rarash at student.chalmers.se>


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

94ab5d2984514f92dd919fbf3611a07d32105546
 docs/users_guide/glasgow_exts.xml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index a8057a6..43fa155 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -272,7 +272,7 @@ If the types of <literal>p</literal> and <literal>q</literal> are not unboxed,
 the resulting binding is lazy like any other Haskell pattern binding.  The
 above example desugars like this:
 <programlisting>
-  f x = let t = case h x o f{ (# p,q #) -> (p,q)
+  f x = let t = case h x of { (# p,q #) -> (p,q) }
             p = fst t
             q = snd t
         in ..body..




More information about the ghc-commits mailing list