Skip to content

Commit 3f4bf69

Browse files
Fix DirIO portability for Windows
1 parent 45e7e97 commit 3f4bf69

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

core/src/Streamly/FileSystem/DirIO.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,12 @@
2020
module Streamly.FileSystem.DirIO
2121
(
2222
-- * Configuration
23-
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
24-
-- | Only the default ReadOptions are supported for Windows. Please use "id"
25-
-- as the configuration modifier.
26-
ReadOptions
27-
#else
2823
ReadOptions
2924
, followSymlinks
3025
, ignoreMissing
3126
, ignoreSymlinkLoops
3227
, ignoreInaccessible
33-
#endif
28+
3429
-- * Streams
3530
, read
3631
, readEither

hie.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ cradle:
126126
component: "test:Data.Unbox"
127127
- path: "./test/Streamly/Test/Data/Unfold.hs"
128128
component: "test:Data.Unfold"
129+
- path: "./test/Streamly/Test/FileSystem/DirIO.hs"
130+
component: "test:FileSystem.DirIO"
129131
- path: "./test/Streamly/Test/FileSystem/Event.hs"
130132
component: "test:FileSystem.Event"
131133
- path: "./test/Streamly/Test/FileSystem/Event/Common.hs"

test/Streamly/Test/FileSystem/DirIO.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import qualified Streamly.Internal.Unicode.Stream as Unicode (lines)
3030
import qualified Streamly.Data.Stream.Prelude as Stream
3131
import qualified Streamly.Data.Fold as Fold
3232
import qualified Streamly.Data.StreamK as StreamK
33-
import qualified Streamly.Internal.FileSystem.DirIO as Dir
33+
import qualified Streamly.FileSystem.DirIO as Dir
3434

3535
import Prelude hiding (last, length)
3636
import BenchTestLib.DirIO

0 commit comments

Comments
 (0)