@@ -151,7 +151,7 @@ module Streamly.Internal.FileSystem.Event.Linux
151151where
152152
153153import Control.Monad (void, when)
154−import Control.Monad.IO.Class (MonadIO, liftIO)
154+import Control.Monad.IO.Class (MonadIO)
155155import Data.Bits ((.|.), (.&.), complement)
156156import Data.Char (ord)
157157import Data.Foldable (foldlM)
@@ -912,8 +912,8 @@ watchWith f paths = S.bracketIO before after (watchToStream cfg)
912912 where
913913
914914 cfg = f defaultConfig
915− before = liftIO $ openWatch cfg paths
916− after = liftIO . closeWatch
915+ before = openWatch cfg paths
916+ after = closeWatch
917917
918918-- | Same as 'watchWith' using 'defaultConfig' and recursive mode.
919919--