~ubuntu-branches/ubuntu/trusty/haskell-mode/trusty-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;;; haskell-yas.el --- Customization support for Luke Hoersten's yasnippets

;; Copyright (C) 2013 John Wiegley, Luke Hoersten

;; Authors: 2013      John Wiegley
;;          2013      Luke Hoersten
;; Keywords: faces files Haskell
;; Version: $Name:  $
;; URL: http://www.haskell.org/haskell-mode/

;; This file is not part of GNU Emacs.

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; Provides customization variables for Luke Hoersten's yasnippet collection
;; to depend on.

(defgroup haskell-yas nil
  "Customizations for Luke Hoersten's yasnippet collection for haskell-mode."
  :group 'haskell
  :prefix "haskell-yas-")

(defcustom haskell-yas-ghc-language-pragmas
  (split-string (shell-command-to-string "ghc --supported-extensions"))
  "List of language pragmas supported by the installed version of GHC."
  :group 'haskell-yas
  :type '(repeat string))

(defcustom haskell-yas-completing-function 'ido-completing-read
  "Function to use for completing among alternatives."
  :group 'haskell-yas
  :type 'function)

;;;###autoload
(defun haskell-yas-complete (&rest args)
  (apply haskell-yas-completing-function args))

;; Provide ourselves:

(provide 'haskell-yas)

;; arch-tag: 
;;; haskell-yas.el ends here