Skip to content

Commit

Permalink
Merge pull request #88 from BlockScope/fix/yaml-decode-87
Browse files Browse the repository at this point in the history
Yaml.decode is deprecated, use decodeEither' instead.
  • Loading branch information
nmattia authored Oct 12, 2018
2 parents 6dc8caa + e42469b commit 5d52a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snack-lib/YamlToJson.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ main :: IO ()
main = do
[file] <- getArgs
yaml <- BS8.readFile file
let Just value = Yaml.decode yaml :: Maybe Aeson.Value
let Right value = Yaml.decodeEither' yaml :: Either Yaml.ParseException Aeson.Value
BL8.putStrLn $ Aeson.encode value

0 comments on commit 5d52a2d

Please sign in to comment.