Use YAML.decode rather than YAML.decodeStrict.
(Minor)
This commit is contained in:
parent
78dca68a0a
commit
cbb662ca07
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue