[commit: ghc] master: Remove Ord AltCon (77b8c29)

git at git.haskell.org git at git.haskell.org
Thu Jun 9 14:25:00 UTC 2016


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

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

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

commit 77b8c29b8baf9b84df6c8352d7f785c75522eff4
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Thu Jun 9 07:25:11 2016 -0700

    Remove Ord AltCon
    
    It uses Ord DataCon which uses Ord Unique which is
    nondeterministic
    
    GHC Trac: #4012


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

77b8c29b8baf9b84df6c8352d7f785c75522eff4
 compiler/coreSyn/CoreSyn.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/coreSyn/CoreSyn.hs b/compiler/coreSyn/CoreSyn.hs
index 6fb1a33..a6f8f82 100644
--- a/compiler/coreSyn/CoreSyn.hs
+++ b/compiler/coreSyn/CoreSyn.hs
@@ -292,7 +292,7 @@ data AltCon
                       -- See Note [Literal alternatives]
 
   | DEFAULT           -- ^ Trivial alternative: @case e of { _ -> ... }@
-   deriving (Eq, Ord, Data)
+   deriving (Eq, Data)
 
 -- | Binding, used for top level bindings in a module and local bindings in a @let at .
 



More information about the ghc-commits mailing list