Getting your Haskell executable statically linked with Nix

I have been making my products statically linked over the past few days. This post presents why and how to statically link your Haskell executables and collects a mapping from obscure error to unexpected fixes. This work would not have been possible without the many-year-long effort of people like nh2 . This issue on GitHub is a good summary of what went into making this possible. Why statically…