on master help sign in
Fix CI
commitc7ae66e3bc3a07b9f37e4c64844b64502cec6db3 authorAndrzej Rybczak <andrzej@rybczak.net> dateThu 16 Dec 2021, 17:55 (5 years ago) parent98f6db5
3 files changed+9−4
effectful-core/effectful-core.cabal+1−1 effectful/effectful.cabal+3−3 effectful/src/Effectful/Process.hs+5
effectful-core/effectful-core.cabal+1−1
@@ -69,7 +69,7 @@ library
6969 build-depends: effectful-internal-utils
7070
7171 build-depends: base >= 4.13 && < 5
72− , containers >= 0.6.5.1
72+ , containers >= 0.6
7373 , exceptions >= 0.10.4
7474 , monad-control >= 1.0.3
7575 , primitive >= 0.7.3.0
effectful/effectful.cabal+3−3
@@ -62,12 +62,12 @@ library
6262
6363 build-depends: base >= 4.13 && < 5
6464 , async >= 2.2.2
65− , directory >= 1.3.7.0
65+ , directory >= 1.3.2
6666 , effectful-core >= 0.1 && < 0.1.1
67− , process >= 1.6.12
67+ , process >= 1.6.9
6868 , resourcet >= 1.2.4.3
6969 , time >= 1.9.2
70− , stm >= 2.5.0.2
70+ , stm >= 2.5.0.0
7171 , unliftio >= 0.2.20
7272
7373 hs-source-dirs: src
effectful/src/Effectful/Process.hs+5
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
12-- | Lifted version of "System.Process".
23module Effectful.Process
34 ( -- * The effect
@@ -30,7 +31,9 @@ module Effectful.Process
3031 , P.showCommandForUser
3132 , P.Pid
3233 , getPid
34+#if MIN_VERSION_process(1,6,12)
3335 , getCurrentPid
36+#endif
3437
3538 -- * Process completion
3639 , waitForProcess
@@ -143,9 +146,11 @@ cleanupProcess = unsafeEff_ . P.cleanupProcess
143146getPid :: Process :> es => P.ProcessHandle -> Eff es (Maybe P.Pid)
144147getPid = unsafeEff_ . P.getPid
145148
149+#if MIN_VERSION_process(1,6,12)
146150-- | Lifted 'P.getCurrentPid'.
147151getCurrentPid :: Process :> es => Eff es P.Pid
148152getCurrentPid = unsafeEff_ P.getCurrentPid
153+#endif
149154
150155----------------------------------------
151156-- Process completion