Huge Windows executable for a Haskell program
I did write a small program using Haskell in Windows. The program depends only on base, diagrams-lib and diagrams-rasterific. The generated standalone executable is huge (25633 KB).
I have read several similar questions (Small Haskell program compiled with GHC into huge binary), but all of them presume Linux is being used. I think that the problem is that everything used (or not) is statically linked into the executable. This includes (I guess) the libraries that in Linux are taken as granted and in Windows are not available.
Any help for reducing the size of the executable will be welcome.
OS: Windows 7 64 bits Pro, Haskell Stack: lts-8.16
链接地址: http://www.djcxy.com/p/33292.html