aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-16 10:13:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-16 10:13:16 -0700
commit708bb8afe48e82fd35b1951714ecef1304eb38f7 (patch)
tree7d85f8ca6c5f1676668417ae0efed6b208f19619 /src
parent68434957d6e9c5d950fd302116d147836fa4b139 (diff)
downloadpandoc-708bb8afe48e82fd35b1951714ecef1304eb38f7.tar.gz
Fix import in PDF.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/PDF.hs4
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