filepath

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Sun Dec 9 09:36:38 EST 2007


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.



More information about the Libraries mailing list