#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     |   Resolution:             
    Keywords:            |   Difficulty:  Easy (1 hr)
          Os:  Unknown   |     Testcase:             
Architecture:  Multiple  |  
-------------------------+--------------------------------------------------
Comment (by Isaac Dupree):

 I've seen things like
 {{{
 ghc -e 'let
            foo = bar
         in
           do
            baz foo
            putStrLn "ha ha"
 ' | some other shell command
 }}}
 ... how about allowing multiple `-e expr` arguments, which are done in
 sequence? At present it appears that GHC just evaluates the last one of
 those when given multiple (e.g. try `ghc -e 'putStrLn "1"' -e 'putStrLn
 "2"'`), which doesn't make much sense.

-- 
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

Reply via email to