>Not linking with DLLs
|The Glasgow Haskell Compiler User's Guide, Version 5.04|
|Prev||Chapter 11. Building and using Win32 DLLs||Next|
If you want to build an executable that doesn't depend on any ghc-compiled DLLs, use the -static option to link in the code statically.
Notice that you cannot mix code that has been compiled with -static and not, so you have to use the -static option on all the Haskell modules that make up your application.