Skip to content

Commit ce5e4d0

Browse files
committed
Merge pull request #1215 from geraldus/g/flycheck-haskell-fix-54
Return removed names for backward compatibility
2 parents 5694503 + 49b7e2e commit ce5e4d0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

haskell-cabal.el

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ it from list if one of the following conditions are hold:
159159
(setq indent-tabs-mode nil)
160160
)
161161

162+
(make-obsolete #'haskell-cabal-get-setting
163+
#'haskell-cabal--get-field
164+
"March 14, 2016")
165+
(defalias #'haskell-cabal-get-setting #'haskell-cabal--get-field
166+
"Try to read value of field with NAME from current buffer.
167+
Obsolete function. Defined for backward compatibility. Use
168+
`haskell-cabal--get-field' instead.")
169+
162170
(defun haskell-cabal--get-field (name)
163171
"Try to read value of field with NAME from current buffer."
164172
(save-excursion
@@ -183,6 +191,15 @@ it from list if one of the following conditions are hold:
183191
(setq val (replace-match "" t t val))))
184192
val)))))
185193

194+
195+
(make-obsolete #'haskell-cabal-guess-setting
196+
#'haskell-cabal-get-field
197+
"March 14, 2016")
198+
(defalias #'haskell-cabal-guess-setting #'haskell-cabal-get-field
199+
"Read the value of field with NAME from project's cabal file.
200+
Obsolete function. Defined for backward compatibility. Use
201+
`haskell-cabal-get-field' instead.")
202+
186203
;;;###autoload
187204
(defun haskell-cabal-get-field (name)
188205
"Read the value of field with NAME from project's cabal file.

0 commit comments

Comments
 (0)