@@ -10,7 +10,9 @@ module Main (main) where
11import Control.Concurrent (MVar, newEmptyMVar, putMVar, takeMVar, threadDelay)
11import Control.Concurrent (MVar, newEmptyMVar, putMVar, takeMVar, threadDelay)
12import Control.Monad.IO.Class (MonadIO)
12import Control.Monad.IO.Class (MonadIO)
13+#if !defined(CABAL_OS_WINDOWS)
13import Data.Char (ord)
14import Data.Char (ord)
14import Data.Maybe (fromJust)
16import Data.Maybe (fromJust)
15import Data.Word (Word8)
17import Data.Word (Word8)
16import System.Directory
18import System.Directory
@@ -24,7 +26,9 @@ import System.Directory
24import System.FilePath ((</>))
26import System.FilePath ((</>))
25import System.IO (BufferMode(..), hSetBuffering, stdout)
27import System.IO (BufferMode(..), hSetBuffering, stdout)
26import System.IO.Temp (withSystemTempDirectory)
28import System.IO.Temp (withSystemTempDirectory)
29+#if !defined(CABAL_OS_WINDOWS)
27import System.IO.Unsafe (unsafePerformIO)
30import System.IO.Unsafe (unsafePerformIO)
28import Streamly.Internal.Data.Array.Storable.Foreign (Array)
32import Streamly.Internal.Data.Array.Storable.Foreign (Array)
30import Test.Hspec
34import Test.Hspec
@@ -160,8 +164,8 @@ renameFileNestedDirEvents =
162-- | Convert an 'Event' record to a short representation for unit test.
166-- | Convert an 'Event' record to a short representation for unit test.
163−showEventShort :: Event -> String
167+showEventShort :: Event.Event -> String
164−showEventShort ev@Event{..} = getRelPath ev ++ "_" ++ show eventFlags
168+showEventShort ev@Event.Event{..} = Event.getRelPath ev ++ "_" ++ show eventFlags