If it all works well then you should be able to compile your haskell programs for windows with wine.

If you encounter specific, reproducible issues that are present in the latest release of wine you should file a bug report with the Wine project http://bugs.winehq.org (so long as one doesn't already exist for the issue)

3 Known problems

removeDirectoryRecursive does not work correctly under most recent Wine - requires a patch to ntdll - as such cabal does not work very well without this patch applied.

3.1 Native DLLs

Wine isn't perfect (yet) but does offer a solution for using native dlls, as an alternative to builtin dlls if certain functions are not implemented or are buggy and not yet fixed. To configure this use winecfg where you can specify settings for the ordering of preferences for loading dlls, Builtin only, Native only, Builtin then Native and Native then Builtin.

winetricks can be useful for installing common native dlls or software

4 Debugging

You can enable tracing of various components within Wine to aid in debugging issues with Wine by using [Wine Debug Channels].