Skip to content

Commit

Permalink
Use isPathSeparator predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 17, 2024
1 parent 73ec3ba commit eacdee4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ instance Ord ProjectConfigPath where
if buildOS == Windows
then
Windows.joinPath $ Windows.splitDirectories
[if c == Posix.pathSeparator then Windows.pathSeparator else c| c <- p]
[if Posix.isPathSeparator c then Windows.pathSeparator else c| c <- p]
else
Posix.joinPath $ Posix.splitDirectories
[if c == Windows.pathSeparator then Posix.pathSeparator else c| c <- p]
[if Windows.isPathSeparator c then Posix.pathSeparator else c| c <- p]

aPaths = splitPath <$> as
bPaths = splitPath <$> bs
Expand Down

0 comments on commit eacdee4

Please sign in to comment.