[commit: ghc] wip/rae: Only *one* Ord instance for Name. (908240d)

git at git.haskell.org git at git.haskell.org
Wed Dec 10 03:16:47 UTC 2014


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/908240d92f4415cde738887c0cde6b47b86200d4/ghc

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

commit 908240d92f4415cde738887c0cde6b47b86200d4
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Tue Dec 9 22:17:17 2014 -0500

    Only *one* Ord instance for Name.


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

908240d92f4415cde738887c0cde6b47b86200d4
 libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index 25ba7fa..e491476 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -660,7 +660,7 @@ Names constructed using @newName@ and @mkName@ may be used in bindings
 (such as @let x = ...@ or @\x -> ...@), but names constructed using
 @lookupValueName@, @lookupTypeName@, @'f@, @''T@ may not.
 -}
-data Name = Name OccName NameFlavour deriving (Typeable, Data, Eq, Ord, Generic)
+data Name = Name OccName NameFlavour deriving (Typeable, Data, Eq, Generic)
 
 instance Ord Name where
     -- check if unique is different before looking at strings



More information about the ghc-commits mailing list