Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: defcustom for ‘haskell-indent-spaces’ fails to specify type #1126

Closed
aplanas opened this issue Feb 1, 2016 · 2 comments
Closed

Comments

@aplanas
Copy link
Contributor

aplanas commented Feb 1, 2016

Using last emacs from git, and last haskell-mode from git, make produces this error:

In toplevel form:
haskell-mode.el:831:1:Error: defcustom for ‘haskell-indent-spaces’ fails to specify type
Makefile:106: recipe for target 'build-25.1.50.1' failed
make: *** [build-25.1.50.1] Error 1
@aplanas
Copy link
Contributor Author

aplanas commented Feb 1, 2016

With this patch I am able to compile:

diff --git a/haskell-mode.el b/haskell-mode.el
index d45384e..62fabad 100644
--- a/haskell-mode.el
+++ b/haskell-mode.el
@@ -830,7 +830,8 @@ Note that negative arguments do not work so well."

 (defcustom haskell-indent-spaces 2
   "Number of spaces to indent inwards."
-  :group 'haskell)
+  :group 'haskell
+  :type 'integer)

 ;; Like Python.  Should be abstracted, sigh.
 (defun haskell-check (command)

@gracjan
Copy link
Contributor

gracjan commented Feb 2, 2016

Fixed by #1128.

@gracjan gracjan closed this as completed Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants