module Effectful.Concurrent.QSem
(
Concurrent
, runConcurrent
, QSem
, newQSem
, waitQSem
, signalQSem
) where
import Control.Concurrent.QSem (QSem)
import qualified Control.Concurrent.QSem as Q
import Effectful
import Effectful.Concurrent.Effect
import Effectful.Dispatch.Static
newQSem :: Concurrent :> es => Int -> Eff es QSem
newQSem :: forall (es :: [Effect]). (Concurrent :> es) => Int -> Eff es QSem
newQSem = forall a (es :: [Effect]). IO a -> Eff es a
unsafeEff_ forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> IO QSem
Q.newQSem
waitQSem :: Concurrent :> es => QSem -> Eff es ()
waitQSem :: forall (es :: [Effect]). (Concurrent :> es) => QSem -> Eff es ()
waitQSem = forall a (es :: [Effect]). IO a -> Eff es a
unsafeEff_ forall b c a. (b -> c) -> (a -> b) -> a -> c
. QSem -> IO ()
Q.waitQSem
signalQSem :: Concurrent :> es => QSem -> Eff es ()
signalQSem :: forall (es :: [Effect]). (Concurrent :> es) => QSem -> Eff es ()
signalQSem = forall a (es :: [Effect]). IO a -> Eff es a
unsafeEff_ forall b c a. (b -> c) -> (a -> b) -> a -> c
. QSem -> IO ()
Q.signalQSem