Stack has a command line argument --arch, mostly intended for the Windows case. Try stack --install-ghc --arch i386 build, it should do what you want.
I've got someone who wants to run one of my haskell apps on a 32-bit Windows 10 box. I've pretty much moved to 64-bit everywhere, so don't have such a system to build on._______________________________________________Is it possible to get stack/cabal/ghc to build a 32-bit Windows binary on a 64-bit Windows box? Google found a bunch of things about building 64 bit applications, and the ghc manual doesn't seem to have such an option. So do I need to get a 32-bit system for this?
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe