git.iko.soy/typeable/pandoc
on master help sign in
Get rid of unused docx variable.

Since changing the Docx type, this is no longer necessary. Thanks to Matthew Pickering for picking up on this.

commit91ab2f155fb41afa539d0074c46d8f6abfbb8bb9 authorJesse Rosenthal <jrosenthal@jhu.edu> dateWed 6 Aug 2014, 12:19 (12 years ago) parent444b1c2
1 file changed+3−5
src/Text/Pandoc/Readers/Docx.hs+3−5
src/Text/Pandoc/Readers/Docx.hs+3−5
@@ -112,8 +112,7 @@ defaultDState = DState { docxAnchorMap = M.empty
112112 , docxMediaBag = mempty
113113 , docxInHeaderBlock = False}
114114
115−data DEnv = DEnv { docxOptions :: ReaderOptions
116− , docxDocument :: Docx}
115+data DEnv = DEnv { docxOptions :: ReaderOptions}
117116
118117type DocxContext = ReaderT DEnv (State DState)
119118
@@ -717,10 +716,9 @@ bodyToOutput (Body bps) = do
717716 mediaBag)
718717
719718docxToOutput :: ReaderOptions -> Docx -> (Meta, [Block], MediaBag)
720−docxToOutput opts d@(Docx (Document _ body)) =
719+docxToOutput opts (Docx (Document _ body)) =
721720 let dState = defaultDState
722− dEnv = DEnv { docxOptions = opts
723− , docxDocument = d}
721+ dEnv = DEnv { docxOptions = opts }
724722 in
725723 evalDocxContext (bodyToOutput body) dEnv dState
726724