Skip to content

Commit 82e2e97

Browse files
committed
Add new haskell-utils.el module for addressing #187
This module's purpose is to provide a place for helper functions which are general enough to be usable by multiple modules and/or to alleviate circular module dependency problems.
1 parent f99beb3 commit 82e2e97

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ELFILES = \
3333
haskell-string.el \
3434
haskell-str.el \
3535
haskell-unicode-input-method.el \
36+
haskell-utils.el \
3637
haskell-yas.el \
3738
haskell-presentation-mode.el \
3839
inf-haskell.el

haskell-utils.el

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
;;; haskell-utils.el --- General utility functions used by haskell-mode modules
2+
3+
;; Copyright (C) 2013 Herbert Valerio Riedel
4+
5+
;; Author: Herbert Valerio Riedel <[email protected]>
6+
7+
;; This file is not part of GNU Emacs.
8+
9+
;; This file is free software; you can redistribute it and/or modify
10+
;; it under the terms of the GNU General Public License as published by
11+
;; the Free Software Foundation; either version 3 of the License, or
12+
;; (at your option) any later version.
13+
14+
;; This file is distributed in the hope that it will be useful,
15+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
;; GNU General Public License for more details.
18+
19+
;; You should have received a copy of the GNU General Public License
20+
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
22+
;;; Commentary:
23+
24+
;; This module's purpose is to provide a place for helper functions
25+
;; which are general enough to be usable by multiple modules and/or
26+
;; to alleviate circular module dependency problems.
27+
;;
28+
;; When possible, functions in this module shall be accompanied by
29+
;; ERT-based unit tests.
30+
;;
31+
;; See also `haskell-str.el' for string utility functions.
32+
;;
33+
;; All symbols in this module have a `haskell-utils-' prefix.
34+
35+
;;; Code:
36+
37+
;; NOTE: This module is supposed to be a leaf-module and shall not
38+
;; require/depend-on any other haskell-mode modules in order to
39+
;; stay at the bottom of the module dependency graph.
40+
41+
(provide 'haskell-utils)
42+
43+
;;; haskell-utils.el ends here

0 commit comments

Comments
 (0)