Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954225 - dev-haskell/cabal-install-3.14.1::haskell fails with "Couldn't match expected type" error
Summary: dev-haskell/cabal-install-3.14.1::haskell fails with "Couldn't match expected...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-22 20:00 UTC by Mark-Joe
Modified: 2025-04-22 20:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,43.42 KB, text/x-log)
2025-04-22 20:03 UTC, Mark-Joe
Details
emerge --info result (info-cabal.txt,7.02 KB, text/plain)
2025-04-22 20:05 UTC, Mark-Joe
Details
emerge -pqv '=dev-haskell/cabal-install-3.14.1.1::haskell' (pqv-cabal.txt,291 bytes, text/plain)
2025-04-22 20:07 UTC, Mark-Joe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark-Joe 2025-04-22 20:00:33 UTC
emerging cabal-install fails with following error message:

src/Distribution/Deprecated/ParseUtils.hs:405:31: error: [GHC-83865]
    • Couldn't match expected type ‘PE.ParseError’
                  with actual type ‘parsec-3.1.17.0:Text.Parsec.Error.ParseError’
      Note: ‘PE.ParseError’
              is defined in ‘Text.Parsec.Error’ in package ‘parsec-3.1.18.0’
            ‘parsec-3.1.17.0:Text.Parsec.Error.ParseError’
              is defined in ‘Text.Parsec.Error’ in package ‘parsec-3.1.17.0’.
    • In the first argument of ‘PE.errorMessages’, namely ‘perr’
      In the sixth argument of ‘PE.showErrorMessages’, namely
        ‘(PE.errorMessages perr)’
      In the first argument of ‘NoParse’, namely
        ‘(PE.showErrorMessages
            "or" "unknown parse error" "expecting" "unexpected" "end of file"
            (PE.errorMessages perr))’
Comment 1 Mark-Joe 2025-04-22 20:03:28 UTC
Created attachment 925701 [details]
build log
Comment 2 Mark-Joe 2025-04-22 20:05:53 UTC
Created attachment 925702 [details]
emerge --info result
Comment 3 Mark-Joe 2025-04-22 20:07:53 UTC
Created attachment 925703 [details]
emerge -pqv '=dev-haskell/cabal-install-3.14.1.1::haskell'
Comment 4 Mark-Joe 2025-04-22 20:18:39 UTC
The (almost) same error message appears when emerging dev-haskell/cabal-install-3.10.3.0 on another gentoo machine running ghc-9.4.8


src/Distribution/Client/FetchUtils.hs:233:36: error:
    • Couldn't match type ‘Distribution.Types.PackageId.PackageIdentifier’
                     with ‘Cabal-syntax-3.8.1.0:Distribution.Types.PackageId.PackageIdentifier’
      Expected: Cabal-syntax-3.8.1.0:Distribution.Types.PackageId.PackageIdentifier
        Actual: PackageId
      NB: ‘Cabal-syntax-3.8.1.0:Distribution.Types.PackageId.PackageIdentifier’
            is defined in ‘Distribution.Types.PackageId’
                in package ‘Cabal-syntax-3.8.1.0’
          ‘Distribution.Types.PackageId.PackageIdentifier’
            is defined in ‘Distribution.Types.PackageId’
                in package ‘Cabal-syntax-3.10.3.0’
    • In the second argument of ‘Sec.downloadPackage'’, namely ‘pkgid’
      In a stmt of a 'do' block: Sec.downloadPackage' rep pkgid path
      In the second argument of ‘($)’, namely
        ‘do info verbosity ("Writing " ++ path)
            Sec.downloadPackage' rep pkgid path’