diff options
author | defanor <defanor@uberspace.net> | 2017-12-28 03:10:32 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-28 03:10:32 +0300 |
commit | 92f0d3041cd9bb587e2b894b76a42704a6c895ad (patch) | |
tree | a795f9e23a87ce2ad8203f7e75269e44a2d29b23 | |
parent | f4696e4a3c0377ab63d51cba34340e7ebd855bdf (diff) |
Lint Pancake.hs
-rw-r--r-- | Pancake.hs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ Maintainer : defanor <defanor@uberspace.net> Stability : unstable Portability : non-portable (uses GHC extensions) -A CLI\/Emacs web\/gopher\/file browser inspired by LMB. +A CLI\/Emacs web\/gopher\/file browser. -} @@ -371,9 +371,9 @@ command Redisplay = do -- | Reads commands, runs them with 'command'. -eventLoop :: forall m. HL.MonadException m => HL.InputT (StateT LoopState m) () +eventLoop :: HL.MonadException m => HL.InputT (StateT LoopState m) () eventLoop = do - st <- lift $ get + st <- lift get c <- HL.handleInterrupt (pure Interrupt) $ maybe Quit (parseCommand (conf st)) <$> HL.withInterrupt (HL.getInputLine "") @@ -386,7 +386,7 @@ eventLoop = do historyURIs :: Pancake [String] historyURIs = do hist <- history <$> get - pure $ map ((\u -> uriToString id u "") . hURI) $ fst hist ++ snd hist + pure $ map ((\u -> uriToString id u "") . hURI) $ uncurry (++) hist -- | An input completion function. complete :: HL.MonadException m => HL.CompletionFunc (StateT LoopState m) |