[GHC] #1312: runghc doesn't respect -main-is

GHC trac at galois.com
Tue Jan 15 04:02:39 EST 2008


#1312: runghc doesn't respect -main-is
----------------------+-----------------------------------------------------
 Reporter:  simonmar  |          Owner:             
     Type:  bug       |         Status:  new        
 Priority:  normal    |      Milestone:  6.8.3      
Component:  Compiler  |        Version:  6.6.1      
 Severity:  minor     |     Resolution:             
 Keywords:            |     Difficulty:  Easy (1 hr)
 Testcase:            |   Architecture:  Multiple   
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by simonmar):

 Strange, I thought the whole point of `:main` was that it ran whatever
 `-main-is` was set to.  I must have been dreaming that.

 I'm not sure we need `set arg-style`, rather I'd like to see the argument
 parsing (currently in `Util.toArgs`) be the simple:

  * double-quoted strings are parsed using `read`
  * everything else is split up at whitespace

 It would be easy to construct the `:main` args: just `unwords . map show`.

 Didn't this come up in another context recently?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1312#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list