diff --git a/layers/+lang/haskell/README.org b/layers/+lang/haskell/README.org index 5028f6b7a..e5f35a6bf 100644 --- a/layers/+lang/haskell/README.org +++ b/layers/+lang/haskell/README.org @@ -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 | diff --git a/layers/+lang/haskell/packages.el b/layers/+lang/haskell/packages.el index e845c3eda..af0fbfa81 100644 --- a/layers/+lang/haskell/packages.el +++ b/layers/+lang/haskell/packages.el @@ -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))