From 708bb8afe48e82fd35b1951714ecef1304eb38f7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 16 Aug 2017 10:13:16 -0700 Subject: Fix import in PDF. --- src/Text/Pandoc/PDF.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 65d546482..4e4c0b2c1 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -50,7 +50,11 @@ import System.Exit (ExitCode (..)) import System.FilePath import System.IO (stdout) import System.IO.Temp (withTempDirectory, withTempFile) +#if MIN_VERSION_base(4,8,3) import System.IO.Error (IOError, isDoesNotExistError) +#else +import System.IO.Error (isDoesNotExistError) +#endif import Text.Pandoc.Definition import Text.Pandoc.Error (PandocError(PandocPDFProgramNotFoundError)) import Text.Pandoc.MediaBag -- cgit v1.2.3