Added emacs scripts
This commit is contained in:
18
.emacs.d/elpa/haskell-mode-13.12/haskell-string.el
Normal file
18
.emacs.d/elpa/haskell-mode-13.12/haskell-string.el
Normal file
@@ -0,0 +1,18 @@
|
||||
;;;###autoload
|
||||
(defun haskell-trim (string)
|
||||
(replace-regexp-in-string
|
||||
"^[ \t\n]+" ""
|
||||
(replace-regexp-in-string
|
||||
"[ \t\n]+$" ""
|
||||
string)))
|
||||
|
||||
;;;###autoload
|
||||
(defun haskell-string-take (string n)
|
||||
"Take n chars from string."
|
||||
(substring string
|
||||
0
|
||||
(min (length string) n)))
|
||||
|
||||
(defun haskell-string ())
|
||||
|
||||
(provide 'haskell-string)
|
Reference in New Issue
Block a user