<div dir="ltr"><div>Hi Volker,<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is it possible to link the remaining libraries statically too?<br></blockquote><div><br></div><div>Yes,
 it is possible to generate fully statically linked Haskell binaries. 
Though it requires a bit of setup. For example the GNU C library glibc 
is not really intended for fully static linking, but you can use musl as
 an alternative libc instead.</div><div><br></div><div> Probably the 
easiest way is to use static-haskell-nix [1]. Usage instructions are 
available in the project README. See [2] if you're not familiar with 
Nix.<br></div><div><br></div><div>Recently, the Haskell extension to 
Bazel, rules_haskell, also gained the ability to generate fully 
statically linked binaries building on top of Nix, see [3].</div><div><br></div><div>Best, Andreas<br></div><div><br></div><div>[1]: <a href="https://github.com/nh2/static-haskell-nix" target="_blank">https://github.com/nh2/static-haskell-nix</a></div><div>[2]: <a href="https://nixos.org/" target="_blank">https://nixos.org/</a></div><div>[3]: <a href="https://rules-haskell.readthedocs.io/en/latest/haskell-use-cases.html#building-fully-statically-linked-binaries" target="_blank">https://rules-haskell.readthedocs.io/en/latest/haskell-use-cases.html#building-fully-statically-linked-binaries</a></div></div>