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:
parent
555d90c432
commit
00aeb23b1e
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||||
|
|
Loading…
Reference in a new issue