Ticket #1312 (closed bug: fixed)
runghc doesn't respect -main-is
|Reported by:||simonmar||Owned by:||igloo|
|Type of failure:||Difficulty:||Easy (less than 1 hour)|
|Test Case:||Blocked By:|
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.