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

David McBride toad3k at gmail.com
Wed Apr 10 03:19:56 CEST 2013


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 at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130409/6df99153/attachment.htm>


More information about the Beginners mailing list