[commit: ghc] master: user's guide: typo in ViewPatterns example (9696282)

git at git.haskell.org git at git.haskell.org
Sat Nov 17 05:38:38 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9696282911a5750178b0b890f3c0b638046b8f13/ghc

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

commit 9696282911a5750178b0b890f3c0b638046b8f13
Author: Ben Price <ben at brprice.uk>
Date:   Sun Nov 11 17:19:57 2018 +0000

    user's guide: typo in ViewPatterns example


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

9696282911a5750178b0b890f3c0b638046b8f13
 docs/users_guide/glasgow_exts.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 5cf50b7..7056d04 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -743,7 +743,7 @@ follows:
       view pattern expression are in scope. For example: ::
 
           example :: Maybe ((String -> Integer,Integer), String) -> Bool
-          example Just ((f,_), f -> 4) = True
+          example (Just ((f,_), f -> 4)) = True
 
       Additionally, in function definitions, variables bound by matching
       earlier curried arguments may be used in view pattern expressions



More information about the ghc-commits mailing list