1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-24 12:16:17 +03:00

Yaml.decode is deprecated, use decodeEither' instead, #87.

This commit is contained in:
Phil de Joux 2018-10-12 15:15:00 -04:00
parent 5e5bff9448
commit e42469b67f

View File

@ -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