#1312: runghc doesn't respect -main-is
--------------------------+-------------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8
Component: Compiler | Version: 6.6.1
Severity: minor | Keywords:
Difficulty: Easy (1 hr) | Os: Unknown
Testcase: | Architecture: Multiple
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1312>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs