Skip to content

Commit 2c93b2d

Browse files
committed
Only depend on Cabal-syntax
Because we don't need all of Cabal
1 parent 6b7fcbb commit 2c93b2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ library
8686

8787
build-depends: bytestring >= 0.10 && < 0.13
8888
-- We need to pin a single major version of
89-
-- Cabal here because the main reason we use
90-
-- Cabal is for its list of extensions. Later
89+
-- Cabal-syntax here because the main reason we use
90+
-- Cabal-syntax is for its list of extensions. Later
9191
-- versions have strictly more extensions, and
9292
-- we'll have missing patterns if we try to
9393
-- support more than one major version. If
9494
-- this causes problems in practice let's
9595
-- revisit this decision and come up with
9696
-- another approach.
97-
, Cabal ^>= 3.14
97+
, Cabal-syntax ^>= 3.14
9898
, containers >= 0.6 && < 0.8
9999
, directory ^>= 1.3
100100
, filepath >= 1.4 && < 1.6

src/Extensions/Cabal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import Distribution.Types.GenericPackageDescription (GenericPackageDescription (
4141
import Distribution.Types.Library (Library (..))
4242
import Distribution.Types.TestSuite (TestSuite (..))
4343
import Distribution.Types.TestSuiteInterface (TestSuiteInterface (..))
44-
#if MIN_VERSION_Cabal(3,6,0)
44+
#if MIN_VERSION_Cabal_syntax(3,6,0)
4545
import Distribution.Utils.Path (getSymbolicPath)
4646
#endif
4747
import GHC.LanguageExtensions.Type (Extension (..))
@@ -147,7 +147,7 @@ condTreeToExtensions
147147
condTreeToExtensions extractModules extractBuildInfo condTree = do
148148
let comp = condTreeData condTree
149149
let buildInfo = extractBuildInfo comp
150-
#if MIN_VERSION_Cabal(3,6,0)
150+
#if MIN_VERSION_Cabal_syntax(3,6,0)
151151
let srcDirs = getSymbolicPath <$> hsSourceDirs buildInfo
152152
#else
153153
let srcDirs = hsSourceDirs buildInfo

0 commit comments

Comments
 (0)