> > 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