Skip to content

Commit 942bee0

Browse files
committed
Rewrote lang extensions pragma to use yasnippet prompt function.
1 parent b1ba50f commit 942bee0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

snippets/haskell-mode/lang-pragma

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# -*- mode: snippet -*-
22
# key: lang
3-
# name: language pragma
3+
# name: language extension pragma
44
# condition: (= (length "lang") (current-column))
5-
# contributor: Luke Hoersten <luke@hoersten.org>, John Wiegley
5+
# contributor: Luke Hoersten <luke@hoersten.org>
66
# --
7-
{-# LANGUAGE `(progn (require 'haskell-yas) (haskell-yas-complete "Extension: " haskell-ghc-supported-languages))` #-}
7+
{-# LANGUAGE `(some #'(lambda (fn)
8+
(funcall fn "Extension: " haskell-ghc-supported-languages))
9+
yas-prompt-functions)` #-}

0 commit comments

Comments
 (0)