Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

This suggestion supposes that every system names files in the same way modulo choice of "directory separator":
To find a source file corresponding to a module name used in an import declaration, the following mapping from module name to OS file name is used. The '.' character is mapped to the OS's directory separator string while all other characters map to themselves. The ".hs" or ".lhs" extension is added. Where both ".hs" and ".lhs" files exist for the same module, the ".lhs" one should be used.
This supposition is unwarranted. We have all seen relative naming systems that run both ways: a.b.c versus c(b(a)). And Haskellites would simplify the latter to c$b$a. Secondary storage may be organized by files, segments, objects, etc. Combinations of these notions have been created in order to cater for legacy languages that depend on particular models. It is a step too far to try to predict how Haskell modules will be adopted into every possible naming environment. Doug McIlroy

On 7 April 2011 14:33, Doug McIlroy
This supposition is unwarranted. We have all seen relative naming systems that run both ways: a.b.c versus c(b(a)). And Haskellites would simplify the latter to c$b$a. Secondary storage may be organized by files, segments, objects, etc. Combinations of these notions have been created in order to cater for legacy languages that depend on particular models.
It is a step too far to try to predict how Haskell modules will be adopted into every possible naming environment.
The proposal doesn't try to regulate the use of Haskell modules in every possible naming environment. Just file systems. And there only as a set of guidelines. To quote Duncan Coutts previously in this thread: "I hope I was clear in the example text that the interoperability guidelines were not forcing implementations to use files etc, just that if they do, if they uses these conventions then sources will be portable between implementations. It doesn't stop an implementation using URLs, sticking multiple modules a file or keeping modules in a database."
participants (2)
-
Doug McIlroy
-
Roel van Dijk