[GHC] #2542: runghc does not infer module file extensions

GHC trac at galois.com
Sun Aug 24 19:06:38 EDT 2008


#2542: runghc does not infer module file extensions
------------------------+---------------------------------------------------
    Reporter:  judah    |       Owner:          
        Type:  bug      |      Status:  new     
    Priority:  normal   |   Component:  Compiler
     Version:  6.8.3    |    Severity:  normal  
    Keywords:           |    Testcase:          
Architecture:  Unknown  |          Os:  Unknown 
------------------------+---------------------------------------------------
 In ghc-6.8 (and possibly earlier), `runghc` will infer the extension of a
 module filename if it is not specified at the command line.  This feature
 lets us type, for example, {{{runghc Setup configure}}} without worrying
 whether there's a `Setup.lhs` or `Setup.hs` file present.

 For example:
 {{{
 $ cat Useful.hs
 main = putStrLn "Hello, world"
 $ runghc Useful
 Hello, world
 }}}

 However, this does not work for ghc-6.9.20080824:
 {{{
 $ ~/tmp/ghc-stage/bin/runghc Useful

 <no location info>: can't find file: Useful
 $ ~/tmp/ghc-stage/bin/runghc Useful.hs
 Hello, world
 }}}

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


More information about the Glasgow-haskell-bugs mailing list