Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (20 sloc) 0.564 kb
d3b8d49 @chrisdone Support pretty printing Show values in the REPL (requires sexp-show from...
chrisdone authored
1 ;;;###autoload
c8a57f1 @chrisdone More intelligent project-name guessing.
chrisdone authored
2 (defun haskell-trim (string)
3 (replace-regexp-in-string
4 "^[ \t\n]+" ""
5 (replace-regexp-in-string
6 "[ \t\n]+$" ""
7 string)))
8
d3b8d49 @chrisdone Support pretty printing Show values in the REPL (requires sexp-show from...
chrisdone authored
9 ;;;###autoload
c8a57f1 @chrisdone More intelligent project-name guessing.
chrisdone authored
10 (defun haskell-string-take (string n)
11 "Take n chars from string."
12 (substring string
13 0
14 (min (length string) n)))
15
d3b8d49 @chrisdone Support pretty printing Show values in the REPL (requires sexp-show from...
chrisdone authored
16 ;;;###autoload
c8a57f1 @chrisdone More intelligent project-name guessing.
chrisdone authored
17 (defun haskell-is-prefix-of (x y)
18 "Is x string a prefix of y string?"
19 (string= (substring x 0 (min (length x) (length y)))
20 (substring y 0 (min (length x) (length y)))))
21
22 (defun haskell-string ())
23
d3b8d49 @chrisdone Support pretty printing Show values in the REPL (requires sexp-show from...
chrisdone authored
24 (provide 'haskell-string)
Something went wrong with that request. Please try again.