[commit: ghc] master: Fix documentation NOTE about can_fail (d2b681b)

git at git.haskell.org git at git.haskell.org
Wed Feb 1 21:08:36 UTC 2017


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

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

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

commit d2b681bbdf8359b1813ea6c895498737eadc5261
Author: Vladislav Zavialov <vlad.z.4096 at gmail.com>
Date:   Wed Feb 1 14:07:36 2017 +0300

    Fix documentation NOTE about can_fail
    
    In the note it is explained why it's fine to discard a can_fail primop,
    but the table erroneously says it's not fine.


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

d2b681bbdf8359b1813ea6c895498737eadc5261
 compiler/prelude/PrimOp.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/prelude/PrimOp.hs b/compiler/prelude/PrimOp.hs
index 41458b0..cc63216 100644
--- a/compiler/prelude/PrimOp.hs
+++ b/compiler/prelude/PrimOp.hs
@@ -357,7 +357,7 @@ The can_fail and has_side_effects properties have the following effect
 on program transformations.  Summary table is followed by details.
 
             can_fail     has_side_effects
-Discard        NO            NO
+Discard        YES           NO
 Float in       YES           YES
 Float out      NO            NO
 Duplicate      YES           NO



More information about the ghc-commits mailing list