Skip to content

Commit 62531d5

Browse files
Fix preprocessor error in PosixPath
1 parent 4db9fa8 commit 62531d5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎core/src/Streamly/Internal/FileSystem/PosixPath.hs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,8 @@ collapseDotDots (OS_PATH p) =
16601660
normalise :: (EqCfg -> EqCfg) -> OS_PATH_TYPE -> OS_PATH_TYPE
16611661
normalise cfg (OS_PATH p) =
16621662
OS_PATH $ Common.normalise
1663-
Unicode.UNICODE_DECODER Common.OS_NAME (cfg eqCfg) p
1663+
Unicode.UNICODE_DECODER
1664+
Common.OS_NAME (cfg eqCfg) p
16641665

16651666
------------------------------------------------------------------------------
16661667
-- Path prefix
@@ -1671,12 +1672,13 @@ takeCommonPrefix ::
16711672
takeCommonPrefix cfg (OS_PATH a) (OS_PATH b) =
16721673
fmap OS_PATH
16731674
$ Common.takeCommonPrefix
1674-
Unicode.UNICODE_DECODER Common.OS_NAME (cfg eqCfg) a b
1675+
Unicode.UNICODE_DECODER
1676+
Common.OS_NAME (cfg eqCfg) a b
16751677

16761678
stripPrefix ::
16771679
(EqCfg -> EqCfg) -> OS_PATH_TYPE -> OS_PATH_TYPE -> Maybe OS_PATH_TYPE
16781680
stripPrefix cfg (OS_PATH prefix) (OS_PATH p) =
16791681
fmap OS_PATH
16801682
$ Common.stripPrefix
1681-
Unicode.UNICODE_DECODER Common.OS_NAME (cfg eqCfg) prefix p
1682-
1683+
Unicode.UNICODE_DECODER
1684+
Common.OS_NAME (cfg eqCfg) prefix p

0 commit comments

Comments
 (0)