[commit: ghc] master: Use mkSymCo in OptCoercion.wrapSym (d46a510)

git at git.haskell.org git at git.haskell.org
Tue May 9 09:44:24 UTC 2017


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

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

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

commit d46a5102e0911e96a85434e46bbfe8b9ccc86471
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon May 8 13:31:11 2017 +0100

    Use mkSymCo in OptCoercion.wrapSym
    
    Always use the smart constructor!   Richard and I came across
    this omission when looking at something else.


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

d46a5102e0911e96a85434e46bbfe8b9ccc86471
 compiler/types/OptCoercion.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/types/OptCoercion.hs b/compiler/types/OptCoercion.hs
index 17ab302..871840e 100644
--- a/compiler/types/OptCoercion.hs
+++ b/compiler/types/OptCoercion.hs
@@ -794,7 +794,7 @@ checkAxInstCo _ = Nothing
 
 -----------
 wrapSym :: SymFlag -> Coercion -> Coercion
-wrapSym sym co | sym       = SymCo co
+wrapSym sym co | sym       = mkSymCo co
                | otherwise = co
 
 -- | Conditionally set a role to be representational



More information about the ghc-commits mailing list