Parsec: GHC /= Hugs?
Thu, 6 Mar 2003 07:24:27 -0800
"Alastair Reid" <email@example.com> writes:
> Sigbjorn Finne <firstname.lastname@example.org> writes:
> > That'll work just fine, but Hugs is now a bit more clever, letting
> > you use ":" as the path separator in path lists on Windows platforms
> > also.
> Does this work with DOS-style filenames like "c:\temp\foo.hs"?
> If so, how does Hugs distinguish the two different uses of colons?
For platforms that support DOS filenames, "....:c:\temp:..." is interpreted
as one element in a search path list, but "...:c:/temp:..." is treated as
consisting of two, "c" and "/temp".
The GHC code goes further and probes the file system
to determine the interpretation of a path element that starts
with "<drive>:\" (or "<drive>:/"). With a little bit of effort, Hugs
could do the same.