Ticket #1312 (closed bug: fixed)
runghc doesn't respect -main-is
| Reported by: | simonmar | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.3 |
| Component: | Compiler | Version: | 6.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
