Johannes Waldmann | 9 Dec 15:36
Picon
Favicon

Re: filepath

Ian Lynagh wrote:

> I'm having some problems using filepath in GHC. [...]

I'm sure this has been said before: using the type string
to avoid an ADT is generally a bad idea.
(it's the "primitive obsession" code smell.)

There are well-established "file path" ADT designs,
e.g. why don't we rather literally copy
http://java.sun.com/javase/6/docs/api/java/io/File.html ?

Best regards, Johannes.

Gmane