From 900f1bd472b80398c47d3e8d7a6d99c703206d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Fayzrakhmanov=20=28=D0=90=D1=80=D1=82=D1=83=D1=80?= =?UTF-8?q?=20=D0=A4=D0=B0=D0=B9=D0=B7=D1=80=D0=B0=D1=85=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=29?= Date: Fri, 19 Jun 2015 17:28:19 +0500 Subject: [PATCH] Define a list of supported pragmas --- haskell-completions.el | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/haskell-completions.el b/haskell-completions.el index ae44bca6f..1a1396195 100644 --- a/haskell-completions.el +++ b/haskell-completions.el @@ -38,6 +38,31 @@ (require 'haskell-mode) +(defvar haskell-completions-pragma-names + (list "DEPRECATED" + "INCLUDE" + "INCOHERENT" + "INLINABLE" + "INLINE" + "LANGUAGE" + "LINE" + "MINIMAL" + "NOINLINE" + "NOUNPACK" + "OPTIONS" + "OPTIONS_GHC" + "OVERLAPPABLE" + "OVERLAPPING" + "OVERLAPS" + "RULES" + "SOURCE" + "SPECIALIZE" + "UNPACK" + "WARNING") + "A list of supported pragmas. +This list comes from GHC documentation (URL +`https://downloads.haskell.org/~ghc/7.10.1/docs/html/users_guide/pragmas.html'. +") (defun haskell-completions-can-grab-prefix () "Check if the case is appropriate for grabbing completion prefix.