Skip to content

Commit 999164c

Browse files
committed
Merge pull request #731 from geraldus/nil
Define a list of supported pragmas
2 parents c1f9e6b + 900f1bd commit 999164c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

haskell-completions.el

+25
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,31 @@
3838

3939
(require 'haskell-mode)
4040

41+
(defvar haskell-completions-pragma-names
42+
(list "DEPRECATED"
43+
"INCLUDE"
44+
"INCOHERENT"
45+
"INLINABLE"
46+
"INLINE"
47+
"LANGUAGE"
48+
"LINE"
49+
"MINIMAL"
50+
"NOINLINE"
51+
"NOUNPACK"
52+
"OPTIONS"
53+
"OPTIONS_GHC"
54+
"OVERLAPPABLE"
55+
"OVERLAPPING"
56+
"OVERLAPS"
57+
"RULES"
58+
"SOURCE"
59+
"SPECIALIZE"
60+
"UNPACK"
61+
"WARNING")
62+
"A list of supported pragmas.
63+
This list comes from GHC documentation (URL
64+
`https://downloads.haskell.org/~ghc/7.10.1/docs/html/users_guide/pragmas.html'.
65+
")
4166

4267
(defun haskell-completions-can-grab-prefix ()
4368
"Check if the case is appropriate for grabbing completion prefix.

0 commit comments

Comments
 (0)