From ae0418299ec94648520da96c59ea7d85cfb8016d Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Jun 2024 14:09:37 +0200 Subject: cabal-read: admit Cabal>=3.8.0 --- pkgs/simple/cabal-read.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3