1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 03:19:44 +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 , simpleUserHooks
, UserHooks(..) , UserHooks(..)
) )
#if MIN_VERSION_Cabal(3,1,0) #if MIN_VERSION_Cabal(3,6,0)
import Distribution.Utils.Path (unsafeMakeSymbolicPath) import Distribution.Utils.Path (unsafeMakeSymbolicPath)
#endif #endif
import Data.List (intercalate) import Data.List (intercalate)
@ -84,7 +84,7 @@ fudgePackageDesc lbi p = p
} }
where where
fudgeBuildInfo bi = fudgeBuildInfo bi =
#if MIN_VERSION_Cabal(3,1,0) #if MIN_VERSION_Cabal(3,6,0)
bi { hsSourceDirs = unsafeMakeSymbolicPath (autogenModulesDir lbi) : hsSourceDirs bi } bi { hsSourceDirs = unsafeMakeSymbolicPath (autogenModulesDir lbi) : hsSourceDirs bi }
#else #else
bi { hsSourceDirs = autogenModulesDir lbi : hsSourceDirs bi } bi { hsSourceDirs = autogenModulesDir lbi : hsSourceDirs bi }