[Haskell-beginners] </>? Was: doesFileExist cannot get ~/blah_blah right

Brent Yorgey byorgey at seas.upenn.edu
Wed Apr 10 02:06:23 CEST 2013


On Tue, Apr 09, 2013 at 12:25:10PM -0400, David McBride wrote:
> There is a package system-filepath
> http://hackage.haskell.org/package/system-filepath which fixes a lot of
> quibbles people have with the way filepaths are implemented in haskell.
> There are apparently a lot of problems with using strings as filepaths,
> like the fact that they are slow, that they have encoding issues, and that
> people cannot make a path that is system agnostic.
> 
> So the </> operator in that library just joins two filepaths together with
> the correct slash.

This is all true, though using system-filepath is still annoying to
use because it doesn't play well with everything else in the Haskell
ecosystem.  However, I was not referring to the (</>) in
system-filepath but rather the one in the standard 'filepath' package.

-Brent



More information about the Beginners mailing list