[commit: ghc] master: Escape lambda. (1a9705c)

git at git.haskell.org git at git.haskell.org
Sun Oct 9 22:55:22 UTC 2016


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

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

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

commit 1a9705c32f6841be8bc6df3c1084a50dacba2730
Author: Vaibhav Sagar <vaibhavsagar at gmail.com>
Date:   Sun Oct 9 18:21:58 2016 -0400

    Escape lambda.
    
    Test Plan: View updated documentation?
    
    Reviewers: austin, hvr, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2583
    
    GHC Trac Issues: #12672


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

1a9705c32f6841be8bc6df3c1084a50dacba2730
 libraries/base/GHC/Base.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs
index 1afa45c..34a038d 100644
--- a/libraries/base/GHC/Base.hs
+++ b/libraries/base/GHC/Base.hs
@@ -469,7 +469,7 @@ Instances of 'Monad' should satisfy the following laws:
 
 * @'return' a '>>=' k  =  k a@
 * @m '>>=' 'return'  =  m@
-* @m '>>=' (\x -> k x '>>=' h)  =  (m '>>=' k) '>>=' h@
+* @m '>>=' (\\x -> k x '>>=' h)  =  (m '>>=' k) '>>=' h@
 
 Furthermore, the 'Monad' and 'Applicative' operations should relate as follows:
 



More information about the ghc-commits mailing list