[commit: packages/haskeline] master: Add Eq and Ord instances to Completion. (62ca19e)

git at git.haskell.org git at git.haskell.org
Tue Sep 9 16:36:52 UTC 2014


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

On branch  : master
Link       : http://git.haskell.org/packages/haskeline.git/commitdiff/62ca19ec634616c9dd0732cb716f60f43bdb9df0

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

commit 62ca19ec634616c9dd0732cb716f60f43bdb9df0
Author: joneshf <jones3.hardy at gmail.com>
Date:   Thu Feb 20 21:19:43 2014 -0800

    Add Eq and Ord instances to Completion.


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

62ca19ec634616c9dd0732cb716f60f43bdb9df0
 System/Console/Haskeline/Completion.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/Console/Haskeline/Completion.hs b/System/Console/Haskeline/Completion.hs
index 853561c..b17bb0c 100644
--- a/System/Console/Haskeline/Completion.hs
+++ b/System/Console/Haskeline/Completion.hs
@@ -39,7 +39,7 @@ data Completion = Completion {replacement  :: String, -- ^ Text to insert in lin
                             -- ^ Whether this word should be followed by a
                             -- space, end quote, etc.
                             }
-                    deriving Show
+                    deriving (Eq, Ord, Show)
 
 -- | Disable completion altogether.
 noCompletion :: Monad m => CompletionFunc m



More information about the ghc-commits mailing list