diff options
author | tv <tv@shackspace.de> | 2014-07-27 19:56:16 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-07-27 19:56:16 +0200 |
commit | 75ebdc58d851ae101ca8d801ea8eae72d74bdf0d (patch) | |
tree | 277aab49819f790f6511fac8f8040e8a6382562e | |
parent | 9c2ec3fe83c08aac936a41ab798a692797a5ce8b (diff) |
data Mode deriving Eq
-rw-r--r-- | Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -90,7 +90,7 @@ uiThread modeRef lock = do _ -> return () - when (show (mode st) /= show (mode st')) $ do + when (mode st /= mode st') $ do putStrLn $ "change mode: " ++ (show $ mode st') renderInputLine (mode st') (buffer st') @@ -411,6 +411,7 @@ data Mode = InsertMode | NormalMode | VerbatimMode + deriving (Eq) instance Show Mode where show NormalMode = "normal" |