[Haskell-cafe] How to get a file path to the program invoked?

Simon Hengel simon.hengel at wiktory.org
Thu Dec 1 18:41:12 CET 2011


> > How to get this path in Haskell?
> 
> If I understand you correctly, you want
> 
>   takeDirectory `fmap` getProgName

I think getProgName does not give you the full path, but only the
program name.

Cheers,
Simon



More information about the Haskell-Cafe mailing list