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).