I didn't even know the standard library had a </> operator. Here's to learning new things. On Tue, Apr 9, 2013 at 8:06 PM, Brent Yorgey <byorgey@seas.upenn.edu> wrote:
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
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners