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

GHC trac at galois.com
Wed Aug 27 04:39:45 EDT 2008


#2542: runghc does not infer module file extensions
----------------------+-----------------------------------------------------
 Reporter:  judah     |          Owner:  simonmar
     Type:  bug       |         Status:  new     
 Priority:  high      |      Milestone:  6.10.1  
Component:  Compiler  |        Version:  6.8.3   
 Severity:  normal    |     Resolution:          
 Keywords:            |     Difficulty:  Unknown 
 Testcase:            |   Architecture:  Unknown 
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by simonmar):

 Here is the latest plan.  We came to the conclusion that mixing up the
 notion of whether a module is compiled to byte code or object code with
 whether it is specified as a filename or module name is too confusing.  So
 we propose to restore the previous behaviour for specifying
 modules/filenames, and add a new way to say that a module is to be loaded
 as byte-code:

 {{{
 Prelude> :load *A
 Compiling A                ( A.hs, interpreted )
 *A>
 }}}

 The `*`-prefix forces the module to be loaded as byte-code.  You can use
 any combination of * and non-* modules, and you can convert a non-* module
 to a * module later by saying `:add *A`.

 The * syntax mirrors the same syntax used in the `:module` command and the
 prompt, so I think it's a consistent choice.

 I'm validating the change now, please speak up if you dislike this idea or
 have a better one.

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


More information about the Glasgow-haskell-bugs mailing list