"Alastair Reid" <[EMAIL PROTECTED]> writes:
> 
> Sigbjorn Finne <[EMAIL PROTECTED]> 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.

--sigbjorn
_______________________________________________
Hugs-Users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/hugs-users

Reply via email to