1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-22 19:09:43 +01:00

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

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 }