Skip to content

Commit c1cc73d

Browse files
Use Path type in portable module instead of PosixPath type
1 parent 2494634 commit c1cc73d

File tree

1 file changed

+11
-9
lines changed
  • core/src/Streamly/Internal/FileSystem

1 file changed

+11
-9
lines changed

core/src/Streamly/Internal/FileSystem/Path.hs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,20 @@
119119
--
120120

121121
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
122-
-- #define IS_WINDOWS
123-
#define OS_PATH WindowsPath
124-
#define FS_WORD Word16
125-
#define FS_CSTRING CWString
122+
#define IS_WINDOWS
123+
-- #define OS_PATH WindowsPath
124+
-- #define FS_WORD Word16
125+
-- #define FS_CSTRING CWString
126126
#else
127-
#define OS_PATH PosixPath
128-
#define FS_WORD Word8
129-
#define FS_CSTRING CString
127+
-- #define OS_PATH PosixPath
128+
-- #define FS_WORD Word8
129+
-- #define FS_CSTRING CString
130130
#endif
131131

132-
-- #define IS_PORTABLE
133-
-- #include "Streamly/Internal/FileSystem/PosixPath.hs"
132+
#define IS_PORTABLE
133+
#include "Streamly/Internal/FileSystem/PosixPath.hs"
134134

135+
{-
135136
module Streamly.Internal.FileSystem.Path
136137
(
137138
Path
@@ -157,3 +158,4 @@ asFsCString = asCWString
157158
#else
158159
asFsCString = asCString
159160
#endif
161+
-}

0 commit comments

Comments
 (0)