@@ -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" )