summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/simple/cabal-read.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/simple/cabal-read.nix b/pkgs/simple/cabal-read.nix
index 03b42ef..524a970 100644
--- a/pkgs/simple/cabal-read.nix
+++ b/pkgs/simple/cabal-read.nix
@@ -10,7 +10,11 @@ writeHaskellPackage "cabal-read" {
import Data.List
import Data.Maybe
import Distribution.Compiler
+ #if MIN_VERSION_Cabal(3,8,0)
+ import Distribution.Simple.PackageDescription
+ #else
import Distribution.PackageDescription.Parsec
+ #endif
import Distribution.Types.BuildInfo
import Distribution.Types.CondTree
import Distribution.Types.Executable