Skip to content

Commit

Permalink
Fix MonadFail imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fmthoma committed Jan 25, 2021
1 parent 294a30b commit da9b42d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ matrix:
- env: ARGS="--resolver lts-14" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-13" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-12" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-11" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-10" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-9" SKIP_DOCTESTS=false
- env: ARGS="--resolver lts-8" SKIP_DOCTESTS=false

before_install:
# Download and unpack the stack executable
Expand Down
4 changes: 2 additions & 2 deletions src/Vgrep/Environment/Config/Sources/File.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ module Vgrep.Environment.Config.Sources.File
) where

import Control.Monad ((<=<))
import Control.Monad.Fail (MonadFail)
import Control.Monad.IO.Class
import Data.Aeson.Types
( FromJSON (..)
, Options (..)
, Parser
, camelTo
, defaultOptions
, genericParseJSON
Expand Down Expand Up @@ -334,7 +334,7 @@ mapMKeys f = fmap M.fromList . M.foldrWithKey go (pure [])
xs <- mxs
pure ((k', x) : xs)

parseChord :: MonadFail m => String -> m Key.Chord
parseChord :: String -> Parser Key.Chord
parseChord = \case
'C' : '-' : t -> fmap (`Key.withModifier` Key.Ctrl) (parseChord t)
'S' : '-' : t -> fmap (`Key.withModifier` Key.Shift) (parseChord t)
Expand Down

0 comments on commit da9b42d

Please sign in to comment.