Skip to content

-package-conf flag makes runghc fail

I haven't been able to test this with 6.8.3 or HEAD but it seems that runghc doesn't work properly when the -package-conf flag is provided.

echo [] > foo.conf # empty package.conf file
echo 'main = putStrLn "foo"' > Main.hs
runghc -package-conf foo.conf Main.hs # this doesn't work
runghc  Main.hs # this works
Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information