#1462: runghc is undocumented
------------------------------+---------------------------------------------
    Reporter:  Isaac Dupree   |        Owner:         
        Type:  bug            |       Status:  new    
    Priority:  normal         |    Milestone:         
   Component:  Documentation  |      Version:  6.6.1  
    Severity:  normal         |   Resolution:         
    Keywords:                 |   Difficulty:  Unknown
          Os:  Unknown        |     Testcase:         
Architecture:  Unknown        |  
------------------------------+---------------------------------------------
Comment (by sorear):

 runghc is implemented by calling GHCi, loading your module, and invoking
 'main'.  I'm extremely suprised that there is any situation where --make
 is required!  So you can just run ghc -e main Main.hs, (approximately -
 runghc has other magic that is only sometimes useful.  Read the source for
 details, it's <100 lines).  Runghc is *primarily* intended for use as a #!
 interpreter, and is installed with a runhaskell symlink.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1462>
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