Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,252
    • Issues 5,252
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 561
    • Merge requests 561
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17575
Closed
Open
Issue created Dec 14, 2019 by Neil Mitchell@ndmitchellReporter

Failure to runhaskell with -package=Cabal on Windows

Summary

On Windows, using the x86_64 build from haskell.org, I get:

C:\Neil\temp>C:\ghc\ghc-8.8.1\bin\runhaskell.exe -package=Cabal HelloWorld.hs
ghc.exe:  | C:\ghc\ghc-8.8.1\lib\Cabal-3.0.0.0\HSCabal-3.0.0.0.o: unknown symbol `.file'
ghc.exe: unable to load package `Cabal-3.0.0.0'

I get that regardless as to whether HelloWorld.hs exists (and is a hello world program) or is missing.

Expected behavior

Something useful, e.g. running the file I pass.

Environment

  • GHC version used: 8.8.1

Optional:

  • Operating System: Windows
  • System Architecture: x86_64

I can reproduce this bug both on my home machine, and on my Appveyor CI (which goes via Stack).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking