[Haskell-cafe] Foo.Bar.hs filenames poll

Malcolm Wallace malcolm.wallace at me.com
Tue Dec 20 13:42:43 UTC 2016

On 19 Dec 2016, at 22:22, William Yager wrote:

> There's no good reason to force the language to adhere to something as arbitrary or restricted as a traditional filesystem hierarchy. "Modules" are a much more general concept than files on a disk, and it would be a mistake to over-specify them.

And this is exactly why Haskell, the language, leaves this open.  There is no forced mapping between module names and their file storage.  That is an implementation matter, left to individual compilers.  In the past, there has been at least one conformant Haskell compiler which allowed multiple modules to live in the same file.  


More information about the Haskell-Cafe mailing list