The file 50haskell-mode-gentoo.el installed by haskell-mode contains, among
other things, these directives:
(add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock)
(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
IMHO it's not a good idea to add all these here. The haskell-mode is a bit
shaky when it comes to changing the configuration. It's hard for a user (like
me) to "un-add" any of these hooks. So if I don't want to run the, say,
decl-scan feature, I have to edit the file to remove the line! This is bound to
create problems when updating to a new version.
Maybe it would be best to keep the code in there but to comment it out, telling
te user to add the appropriate directives in a file of his own?
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Fixed in CVS.
Because those customizations are mentioned in the installation documentation, and the ebuild already suggests that the user refer to it, I see no need to even include them commented in the site file.