Skip to content

Commit

Permalink
Aeson error messages are changing too fast...
Browse files Browse the repository at this point in the history
  • Loading branch information
fmthoma committed Jun 14, 2019
1 parent eb52e93 commit 9d04af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Vgrep/Environment/Config/Sources.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ module Vgrep.Environment.Config.Sources

import Vgrep.Environment.Config.Sources.Env (editorConfigFromEnv)
import Vgrep.Environment.Config.Sources.File (configFromFile)

8 changes: 3 additions & 5 deletions src/Vgrep/Environment/Config/Sources/File.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import qualified Vgrep.Key as Key
import Vgrep.KeybindingMap

-- $setup
-- >>> import Data.List (isInfixOf)
-- >>> import Data.Either (isLeft)
-- >>> import Data.Yaml.Aeson (decodeEither', ParseException(..))


Expand Down Expand Up @@ -233,8 +233,7 @@ Right [Black,Red,BrightBlack]
Fails with error message if the 'Color' cannot be parsed:
>>> let Left (AesonException err) = decodeEither' "foo" :: Either ParseException Color
>>> "The key \"foo\" was not found" `isInfixOf` err
>>> isLeft (decodeEither' "foo" :: Either ParseException Color)
True
-}
data Color
Expand Down Expand Up @@ -292,8 +291,7 @@ Right [Standout,Underline,Bold]
Fails with error message if the 'Style' cannot be parsed:
>>> let Left (AesonException err) = decodeEither' "foo" :: Either ParseException Style
>>> "The key \"foo\" was not found" `isInfixOf` err
>>> isLeft (decodeEither' "foo" :: Either ParseException Color)
True
-}
data Style
Expand Down

0 comments on commit 9d04af7

Please sign in to comment.