Skip to content

cannot build with ghc-9.12.2 (Variable not in scope: hasLEUpperBound) #10916

Closed
@jwaldmann

Description

@jwaldmann
$ cabal install cabal-install-3.14.2.0

...

[134 of 151] Compiling Distribution.PackageDescription.Check.Target ( src/Distribution/PackageDescription/Check/Target.hs, dist/build/Distribution/PackageDescription/Check/Target.o, dist/build/Distribution/PackageDescription/Check/Target.dyn_o )
src/Distribution/PackageDescription/Check/Target.hs:351:45: error: [GHC-88464]
    Variable not in scope: hasLEUpperBound :: VersionRange -> Bool
    Suggested fix:
      Perhaps use one of these:
        ‘hasUpperBound’ (imported from Distribution.Version),
        data constructor ‘LEUpperBounds’ (imported from Distribution.PackageDescription.Check.Monad),
        ‘hasLowerBound’ (imported from Distribution.Version)
    |
351 |     (checkPVPs (checkDependencyVersionRange hasLEUpperBound) leuck ds)
    |                                             ^^^^^^^^^^^^^^^

src/Distribution/PackageDescription/Check/Target.hs:354:45: error: [GHC-88464]
    Variable not in scope:
      hasTrailingZeroUpperBound :: VersionRange -> Bool
    Suggested fix:
      Perhaps use data constructor ‘TrailingZeroUpperBounds’ (imported from Distribution.PackageDescription.Check.Monad)
    |
354 |     (checkPVPs (checkDependencyVersionRange hasTrailingZeroUpperBound) tzuck ds)
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^

src/Distribution/PackageDescription/Check/Target.hs:357:45: error: [GHC-88464]
    Variable not in scope: hasGTLowerBound :: VersionRange -> Bool
    Suggested fix:
      Perhaps use one of these:
        ‘hasLowerBound’ (imported from Distribution.Version),
        data constructor ‘GTLowerBounds’ (imported from Distribution.PackageDescription.Check.Monad)
    |
357 |     (checkPVPs (checkDependencyVersionRange hasGTLowerBound) gtlck ds)
    |                                             ^^^^^^^^^^^^^^^

with

$ cabal --version
cabal-install version 3.14.1.1
compiled using version 3.14.1.0 of the Cabal library 
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.12.2
$ uname -a
Linux ...... 6.14.0-63.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 24 19:53:37 UTC 2025 x86_64 GNU/Linux

Build seems to work fine with

cabal install cabal-install -w /opt/ghc/ghc-9.10.1/bin/ghc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions