Sigbjorn says: Link with -mwindows (if going via gcc to get at the linker.) i.e., if using the std hello.lhs app ghc -o hello hello.lhs -static -package win32 -optl-mwindows that'll get you a non-console app with mingw. Think it'll do the trick with cygwin too.