File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- {-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable,
1+ {-# LANGUAGE CPP, GeneralizedNewtypeDeriving, DeriveDataTypeable,
22 FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies,
33 TypeSynonymInstances, RankNTypes
44 #-}
@@ -179,9 +179,14 @@ isFile = doesFileExist
179179isDir :: FilePath -> IO Bool
180180isDir = doesDirectoryExist
181181
182- -- | Checks if a path refers to a symbolic link
182+ -- | Checks if a path refers to a symbolic link.
183+ -- NOTE: always returns False on Windows
183184isSymLink :: FilePath -> IO Bool
185+ #if CABAL_OS_WINDOWS
186+ isSymLink p = return False
187+ #else
184188isSymLink p = isSymbolicLink <$> getSymbolicLinkStatus p
189+ #endif
185190
186191-- | Checks if a path refers to a symbolically linked directory
187192isSymDir :: FilePath -> IO Bool
You can’t perform that action at this time.
0 commit comments