[darcs-devel] FilePaths

Andreas Brandt andreas.brandt.de at googlemail.com
Sat Feb 18 23:22:25 UTC 2012


Hi all,

i'm still not sure how to handle FilePaths correctly.
Today i encountered code like this:
     df = darcsdir++"/format"
     repo ++ "/" ++ df
     repo++"/"++darcsdir++"/inventory"

Usually i would import System.FilePath and use </> instead of the string 
stuff.
I already learned that in Darcs, System.FilePath.Posix is used instead 
for... historical reasons?

But somebody also mentioned that there has been work done (by mornfall i 
think) to make the switch off *.Posix. What is this work and can i help 
to make the transition?

What is the right thing to do when seeing code like above?

Thanks,
Andreas


More information about the darcs-devel mailing list