summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-05-12 20:59:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-05-12 20:59:08 -0700
commit1b8d006ac848d146a4b29167f9037306bfaae559 (patch)
treeb2a61157a5c694949cf7032aba81786bd7f1108c /pandoc.hs
parentf3039d3af94e297a36b7fdd338b673cb5f5cda84 (diff)
Revert "Require process >= 1.2.1."
This reverts commit 07a4320ba97cdd219e5cbb18f21dbbda00bc5543.
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 7a2a38d39..78dcd6840 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -52,8 +52,13 @@ import Data.Char ( toLower, toUpper )
import Data.List ( delete, intercalate, isPrefixOf, isSuffixOf, sort )
import System.Directory ( getAppUserDataDirectory, findExecutable,
doesFileExist, Permissions(..), getPermissions )
-import System.Process ( shell, CreateProcess(..), createProcess_,
+import System.Process ( shell, CreateProcess(..),
waitForProcess, StdStream(CreatePipe) )
+#if MIN_VERSION_process(1,2,1)
+import System.Process ( createProcess_ )
+#else
+import System.Process.Internals ( createProcess_ )
+#endif
import System.IO ( stdout, stderr, hClose )
import System.IO.Error ( isDoesNotExistError )
import qualified Control.Exception as E