Skip to content

cabal v2-install --lib failing #6205

@Mistuke

Description

@Mistuke

Describe the bug
cabal v2-install --lib is throwing a pattern match error.

To Reproduce

C:\Users\WDAGUtilityAccount>where ghc-pkg
C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.6.5\bin\ghc-pkg.exe

C:\Users\WDAGUtilityAccount>cabal v2-install network --lib
Resolving dependencies...
Up to date
Distribution\Simple\GHC.hs:1967:5-56: Irrefutable pattern failed for pattern Just ghcPkgProg

Expected behavior
No crash and package installed.

System informataion

  • Windows 10
C:\Users\WDAGUtilityAccount>ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5

C:\Users\WDAGUtilityAccount>cabal --version
cabal-install version 3.1.0.0
compiled using version 3.1.0.0 of the Cabal library

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