From 7388cd3e7a49297a7368a7e77d8f2d86d6965006 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 10 Oct 2019 13:54:58 -0700 Subject: Improve parsing of --defaults. - Add FromYAML instances to Opt and to all subsidiary types. - Remove the use of HsYAML-aeson, which doesn't give good position information on errors. - Rename some fields in Opt to better match cli options or reflect what the ycontain [API change]: + optMetadataFile -> optMetadataFiles + optPDFEngineArgs -> optPDFEngineOpts + optWrapText -> optWrap - Add IpynbOutput enumerated type to Text.Pandoc.App.Opts. Use this instead fo a string for optIpynbOutput. - Add FromYAML instance for Filter in Text.Pandoc.Filters. With these changes parsing of defaults files should be complete and should give decent error messages. Now (unlike before) we get an error if an unknown field is used. --- cabal.project | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cabal.project') diff --git a/cabal.project b/cabal.project index fdc87054b..bf45716d4 100644 --- a/cabal.project +++ b/cabal.project @@ -16,4 +16,4 @@ source-repository-package source-repository-package type: git location: https://github.com/jgm/doctemplates.git - tag: 8c30b5955584ff96459999c4958e8a953fed214f + tag: 180a5e9318e3cee44c6581f6d8ace14de684b735 -- cgit v1.2.3