From ff1df241a9fcacec8c897cc0f01f691ee5b49a22 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Oct 2019 21:54:41 -0700 Subject: T.P.App.Opt: rename optReader, optWriter as optFrom, optTo. This will allow to: and from: in defaults. --- src/Text/Pandoc/App/Opt.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Text/Pandoc/App/Opt.hs') diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs index 09086659d..c491d8ae2 100644 --- a/src/Text/Pandoc/App/Opt.hs +++ b/src/Text/Pandoc/App/Opt.hs @@ -45,8 +45,8 @@ data Opt = Opt { optTabStop :: Int -- ^ Number of spaces per tab , optPreserveTabs :: Bool -- ^ Preserve tabs instead of converting to spaces , optStandalone :: Bool -- ^ Include header, footer - , optReader :: Maybe String -- ^ Reader format - , optWriter :: Maybe String -- ^ Writer format + , optFrom :: Maybe String -- ^ Reader format + , optTo :: Maybe String -- ^ Writer format , optTableOfContents :: Bool -- ^ Include table of contents , optShiftHeadingLevelBy :: Int -- ^ Shift heading level by , optTemplate :: Maybe FilePath -- ^ Custom template @@ -119,8 +119,8 @@ defaultOpts = Opt { optTabStop = 4 , optPreserveTabs = False , optStandalone = False - , optReader = Nothing - , optWriter = Nothing + , optFrom = Nothing + , optTo = Nothing , optTableOfContents = False , optShiftHeadingLevelBy = 0 , optTemplate = Nothing -- cgit v1.2.3