Hi.

On 5 December 2011 14:53, dokondr <dokondr@gmail.com> wrote:
>
> Main System.Environment.Executable System.FilePath> "/abc" </> "/"
> "/"
>
> Instead of getting "/abc/" I get "/". What am I doing wrong?


It thinks the second path is an absolute path.

"Combine two paths, if the second path isAbsolute, then it returns the second."

http://hackage.haskell.org/packages/archive/filepath/latest/doc/html/System-FilePath-Posix.html#v:combine

HTH,
Ozgur