Fix min version guard for Cabal

The Distribution.Utils.Path module has been exposed from Cabal version
3.6 on.
This commit is contained in:
Johannes Maier 2023-03-03 14:17:34 +01:00 committed by fkm3
parent 555d90c432
commit 00aeb23b1e
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import Distribution.Simple
, simpleUserHooks
, UserHooks(..)
)
#if MIN_VERSION_Cabal(3,1,0)
#if MIN_VERSION_Cabal(3,6,0)
import Distribution.Utils.Path (unsafeMakeSymbolicPath)
#endif
import Data.List (intercalate)
@ -84,7 +84,7 @@ fudgePackageDesc lbi p = p
}
where
fudgeBuildInfo bi =
#if MIN_VERSION_Cabal(3,1,0)
#if MIN_VERSION_Cabal(3,6,0)
bi { hsSourceDirs = unsafeMakeSymbolicPath (autogenModulesDir lbi) : hsSourceDirs bi }
#else
bi { hsSourceDirs = autogenModulesDir lbi : hsSourceDirs bi }