haskell: add helm-hoogle, bind to mhf

This commit is contained in:
William Casarin 2016-01-14 11:28:06 -08:00 committed by syl20bnr
parent 3be33a5e51
commit 362b6998cf
2 changed files with 10 additions and 1 deletions

View File

@ -251,6 +251,7 @@ Documentation commands are prefixed by ~SPC m h~
| Key Binding | Description |
|-------------+----------------------------------------------------------------------------|
| ~SPC m h d~ | find or generate Haddock documentation for the identifier under the cursor |
| ~SPC m h f~ | do a helm-hoogle lookup |
| ~SPC m h h~ | do a Hoogle lookup |
| ~SPC m h H~ | do a local Hoogle lookup |
| ~SPC m h i~ | gets information for the identifier under the cursor |

View File

@ -13,13 +13,14 @@
'(
cmm-mode
company
company-ghc
company-cabal
company-ghc
flycheck
flycheck-haskell
ghc
haskell-mode
haskell-snippets
helm-hoogle
hindent
shm
))
@ -28,6 +29,13 @@
(use-package cmm-mode
:defer t))
(when (configuration-layer/layer-usedp 'spacemacs-helm)
(defun haskell/init-helm-hoogle ()
(use-package helm-hoogle
:defer t
:init
(spacemacs/set-leader-keys-for-major-mode 'haskell-mode "hf" 'helm-hoogle))))
(defun haskell/post-init-flycheck ()
(spacemacs/add-flycheck-hook 'haskell-mode-hook))