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