diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-16 10:13:16 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-16 10:13:16 -0700 |
commit | 708bb8afe48e82fd35b1951714ecef1304eb38f7 (patch) | |
tree | 7d85f8ca6c5f1676668417ae0efed6b208f19619 /src | |
parent | 68434957d6e9c5d950fd302116d147836fa4b139 (diff) | |
download | pandoc-708bb8afe48e82fd35b1951714ecef1304eb38f7.tar.gz |
Fix import in PDF.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |