Hi, I don't seem to be able have multiple modules in one file (at least for hugs and ghc). The gentle intro says that there is no restriction and I can't find any mention in the ghc jobs (apart from a recommendation to name a file after the module it contains to help make). It's not a desperate problem - I can split files - but I'd like to know if I'm doing something stupid, or if this is a real restriction. (I can see arguments why from an engineering/maintenance point of view, but one module is small and fits nicely with another; it also makes literate programming slightly more complicated). Thanks, Andrew -- http://www.andrewcooke.free-online.co.uk/index.html
I don't seem to be able have multiple modules in one file (at least for hugs and ghc).
As far as I know, the only compiler that ever supported this was the Yale compiler (which is no longer maintained and probably hard to track down). The current trend is to put each module in a file by itself and, to make life easier for Hugs import chasing or for automatic generation of Makefile dependencies, to make the filename match the module name. -- Alastair Reid
participants (2)
-
Alastair Reid -
andrewļ¼ andrewcooke.free-online.co.uk