Am Mittwoch, den 27.01.2010, 21:19 +0300 schrieb Vladimir Matveev: > Oh yeah, it seems I found it. Solution is to use getModuleFileName and > getModuleHandle functions from System.Win32.DLL. Thanks for attention :) You can also use the (portable) package 'directory' from Hackage (http://hackage.haskell.org/package/directory).