[commit: ghc] ghc-8.0: Escape lambda. (bdfa8a1)

git at git.haskell.org git at git.haskell.org
Mon Oct 10 15:00:19 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/bdfa8a1ce14b551ce2989ad7fa74ee6b4015c5e1/ghc

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

commit bdfa8a1ce14b551ce2989ad7fa74ee6b4015c5e1
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
    
    (cherry picked from commit 1a9705c32f6841be8bc6df3c1084a50dacba2730)


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

bdfa8a1ce14b551ce2989ad7fa74ee6b4015c5e1
 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 1f989c4..2edce60 100644
--- a/libraries/base/GHC/Base.hs
+++ b/libraries/base/GHC/Base.hs
@@ -456,7 +456,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