Merge pull request #10709 from Kleidukos/cabal-3.14.1.1-release-notes
[cabal.git] / cabal-install / tests / IntegrationTests2 / CPP.hs
blobbc591ab4c6b5b0c5c9c02f8fa2585d568e5ce526
1 {- FOURMOLU_DISABLE -}
2 {-# LANGUAGE CPP #-}
4 module IntegrationTests2.CPP
5 ( removePathForcibly
6 , isMingw32
7 ) where
9 import Distribution.Client.Compat.Prelude
10 import Prelude ()
12 #if MIN_VERSION_directory(1,2,7)
13 import System.Directory (removePathForcibly)
14 #endif
16 #if !MIN_VERSION_directory(1,2,7)
17 removePathForcibly :: FilePath -> IO ()
18 removePathForcibly = removeDirectoryRecursive
19 #endif
21 isMingw32 :: Bool
22 #ifndef mingw32_HOST_OS
23 isMingw32 = True
24 #else
25 isMingw32 = False
26 #endif