Skip to content

Mark some variables as safe. #419

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

Merged
merged 1 commit into from
Jan 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions haskell-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,19 @@
(defcustom haskell-indent-offset 4
"Indentation of Haskell statements with respect to containing block."
:type 'integer
:safe #'natnump
:group 'haskell-indent)

(defcustom haskell-indent-literate-Bird-default-offset 1
"Default number of blanks after > in a Bird style literate script."
:type 'integer
:safe #'natnump
:group 'haskell-indent)

(defcustom haskell-indent-rhs-align-column 0
"Column on which to align right-hand sides (use 0 for ad-hoc alignment)."
:type 'integer
:safe #'natnump
:group 'haskell-indent)

(defun haskell-indent-point-to-col (apoint)
Expand Down Expand Up @@ -324,6 +327,7 @@ It deals with both Bird style and non Bird-style scripts."
(defcustom haskell-indent-look-past-empty-line t
"If nil, indentation engine will not look past an empty line for layout points."
:group 'haskell-indent
:safe #'booleanp
:type 'boolean)

(defun haskell-indent-start-of-def ()
Expand Down Expand Up @@ -1020,6 +1024,7 @@ OPEN is the start position of the comment in which point is."
This is necessary in the \"do\" layout under Haskell-98.
See http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse"
:group 'haskell-indent
:safe #'booleanp
:type 'integer)

(defun haskell-indent-closing-keyword (start)
Expand Down