I have been attempting to get my first gtk2hs application building the way I like it and need some assistance at this point.

My first and probably most important issue is that I can't get -optl-mwindows to work (e.g. it doesn't hide the console window on windows 7 or 8). I put this in the ghc-options like this post: http://projects.haskell.org/gtk2hs/archives/2005/06/23/hiding-the-console-on-windows/ says to, but it doesn't seem to do anything.

Second I've been unable to get my project to build as a single standalone executable, no matter what options I specify it always builds with dependencies on the gtk .dlls. I have so far tried ghc-options: -static -optl-static, cabal-dev install -fstatic -optl-static, ld-options: -static etc. Nothing works. I have ensured that the build can only see the gtk/include and gtk/lib directory but I still end up with a small executable and dependencies upon the gtk .dlls.

Any help would be appreciated.