From d7a19c22be073854ea3e2d677913c1d81991b182 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Fri, 25 Sep 2015 03:54:41 +0800 Subject: Move the variable pandocVersion from `src/Text/Pandoc.hs` to `src/Text/Pandoc/Shared.hs`, so that all Writers can access this variable without importing `src/Text/Pandoc.hs`, preventing circular import. * pandoc.hs: Import pandocVersion from `Text.Pandoc.Shared`. * src/Text/Pandoc.hs: Remove the definition of pandocVersion and relevant import. * src/Text/Pandoc/Shared.hs: Add the definition of pandocVersion and relevant import. --- pandoc.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pandoc.hs') diff --git a/pandoc.hs b/pandoc.hs index 7d26dde39..b357754e2 100644 --- a/pandoc.hs +++ b/pandoc.hs @@ -37,7 +37,7 @@ import Text.Pandoc.Walk (walk) import Text.Pandoc.Readers.LaTeX (handleIncludes) import Text.Pandoc.Shared ( tabFilter, readDataFileUTF8, readDataFile, safeRead, headerShift, normalize, err, warn, - openURL ) + openURL, pandocVersion ) import Text.Pandoc.MediaBag ( mediaDirectory, extractMediaBag, MediaBag ) import Text.Pandoc.XML ( toEntities ) import Text.Pandoc.SelfContained ( makeSelfContained ) -- cgit v1.2.3