[GHC] #2167: The -main-is option to runghc does not appear to work.

GHC trac at galois.com
Sun Mar 30 10:42:05 EDT 2008


#2167: The -main-is option to runghc does not appear to work.
----------------------+-----------------------------------------------------
 Reporter:  cjs       |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Compiler  |        Version:  6.8.2  
 Severity:  normal    |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  x86    
       Os:  NetBSD    |  
----------------------+-----------------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown

Old description:

> The -main-is option to runghc does not appear to work, at least not when
> specifying a package name. Create Hello.hs:
>
>     module Hello where
>     main = putStrLn "Hello."
>
> and then try to run it:
>
>     runghc -main-is Hello Hello.hs
>
> You will see:
>
>     <interactive>:1:113:
>         Failed to load interface for `Main':
>           Use -v to see a list of the files searched for.

New description:

 The -main-is option to runghc does not appear to work, at least not when
 specifying a package name. Create Hello.hs:
 {{{
     module Hello where
     main = putStrLn "Hello."
 }}}
 and then try to run it:
 {{{
     runghc -main-is Hello Hello.hs
 }}}
 You will see:
 {{{
     <interactive>:1:113:
         Failed to load interface for `Main':
           Use -v to see a list of the files searched for.
 }}}

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


More information about the Glasgow-haskell-bugs mailing list