runghc doesn't respect -main-is
runghc always invokes Main.main
, it doesn't pay any attention to a -main-is
flag if there is one. The right way to fix this is for runghc
to invoke GHCi's :main
command, but unfortunately then we'd need to pass multiple commands to ghc -e
, because we also need to :set prog
, for example. So probably ghc -e
should split the input expression into lines and execute each line as a separate statement/command.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Multiple |