[GHC] #2551: Allow multiple modules per source file

GHC trac at galois.com
Thu Aug 28 10:28:38 EDT 2008


#2551: Allow multiple modules per source file
--------------------------------+-------------------------------------------
    Reporter:  YitzGale         |       Owner:          
        Type:  feature request  |      Status:  new     
    Priority:  normal           |   Component:  Compiler
     Version:  6.9              |    Severity:  normal  
    Keywords:                   |    Testcase:          
Architecture:  Unknown          |          Os:  Unknown 
--------------------------------+-------------------------------------------
 This is helpful because the module system is the only way to achieve
 encapsulation in Haskell, so the system needs to be as lightweight and
 flexible as possible. It also makes it easier to share and distribute
 Haskell programs when it is most convenient to do so as a single file,
 such as literate Haskell via email.

 To use this feature, one would specify files to be compiled explicitly.
 When GHC searches on its own for modules, it needs the path of the
 file to indicate the name of the module it contains, so multiple modules
 are not possible in that case.

 See #2550, and the thread in:

 http://www.haskell.org/pipermail/haskell-cafe/2008-August/046494.html

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


More information about the Glasgow-haskell-bugs mailing list