Use YAML.decode rather than YAML.decodeStrict.

(Minor)
This commit is contained in:
John MacFarlane 2018-07-30 22:02:45 -07:00
parent 78dca68a0a
commit cbb662ca07

View file

@ -242,7 +242,7 @@ yamlMetaBlock = try $ do
-- by including --- and ..., we allow yaml blocks with just comments:
let rawYaml = unlines ("---" : (rawYamlLines ++ ["..."]))
optional blanklines
case YAML.decodeStrict (UTF8.fromString rawYaml) of
case YAML.decode (UTF8.fromStringLazy rawYaml) of
Right (YAML.Mapping _ hashmap : _) -> do
let alist = M.toList hashmap
mapM_ (\(key, v) ->