From 4c3db9273fc8e92c2c23d4455a6ab178472be06d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 7 Feb 2020 08:32:47 -0800 Subject: Apply linter suggestions. Add fix_spacing to lint target in Makefile. --- src/Text/Pandoc/App/Opt.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/App') diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs index 2be0bb0d8..6fb851844 100644 --- a/src/Text/Pandoc/App/Opt.hs +++ b/src/Text/Pandoc/App/Opt.hs @@ -189,10 +189,10 @@ doOpt (k',v) = do parseYAML v >>= \x -> return (\o -> o{ optMetadata = optMetadata o <> contextToMeta x }) "metadata-files" -> - (parseYAML v >>= \x -> + parseYAML v >>= \x -> return (\o -> o{ optMetadataFiles = optMetadataFiles o <> - map unpack x })) + map unpack x }) "metadata-file" -> -- allow either a list or a single value (parseYAML v >>= \x -> return (\o -> o{ optMetadataFiles = optMetadataFiles o <> -- cgit v1.2.3