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:
parent
5e5bff9448
commit
e42469b67f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user