git.iko.soy/typeable/nixpkgs
on master help sign in
structured-haskell-mode: link Haskell libraries statically into this executable

It's my understanding that Emacs runs the "structured-haskell-mode" binary virtually every time you press a key in an Haskell buffer, and since dynamically linked Haskell binaries take *much* longer to start up, switching this particular package to statically linked libraries ought to result in a performance boost.

commit4da51ec63766742a51d81f1451894d9dcb7e4cfa authorPeter Simons <simons@cryp.to> dateMon 12 Sep 2016, 10:13 (10 years ago) parent4659e2d
1 file changed+5−1
pkgs/development/haskell-modules/configuration-common.nix+5−1
pkgs/development/haskell-modules/configuration-common.nix+5−1
@@ -764,8 +764,12 @@ self: super: {
764764 '';
765765 });
766766
767− # Byte-compile elisp code for Emacs.
767+ # Fine-tune the build.
768768 structured-haskell-mode = overrideCabal super.structured-haskell-mode (drv: {
769+ # Statically linked Haskell libraries make the tool start-up much faster,
770+ # which is important for use in Emacs.
771+ enableSharedExecutables = false;
772+ # Byte-compile elisp code for Emacs.
769773 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.emacs];
770774 postInstall = ''
771775 local lispdir=( "$out/share/"*"-${self.ghc.name}/${drv.pname}-${drv.version}/elisp" )