Skip to content

Commit a2731b3

Browse files
committed
Added GHC options pragma snippet.
1 parent 942bee0 commit a2731b3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ qualified`) can quickly be selected with a single key stroke.
5454
* `main ` - main module and function
5555
* `let` - let bindings
5656
* `lang` - language extension pragmas
57+
* `opt` - GHC options pragmas
5758
* `\` - lambda function
5859
* `inst` - instance declairation
5960
* `imp` - import modules [simple, qualified]

snippets/haskell-mode/opt-pragma

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# key: opt
3+
# name: GHC options pragma
4+
# condition: (= (length "opt") (current-column))
5+
# contributor: Luke Hoersten <luke@hoersten.org>
6+
# --
7+
{-# LANGUAGE `(some #'(lambda (fn)
8+
(funcall fn "GHC Option: " haskell-ghc-supported-options))
9+
yas-prompt-functions)` #-}

0 commit comments

Comments
 (0)