Skip to content

Commit d251297

Browse files
committed
Added elpa package info.
1 parent 8f1011d commit d251297

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

haskell-snippets.el

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
;;; haskell-snippets.el --- Yasnippets for Haskell
22

3-
;; Copyright (C) 2013 Luke Hoersten
4-
;; keywords: snippets
3+
;; Copyright (C) 2013-2015 Luke Hoersten
4+
5+
;; Author: Luke Hoersten <luke@hoersten.org>
6+
;; URL: https://github.com/haskell/haskell-snippets
7+
;; Keywords: snippets, haskell
58
;; Version: 0.1.0
69
;; Package-Requires: ((yasnippet "0.8.0"))
710

@@ -24,6 +27,45 @@
2427
;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2528
;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2629

30+
;;; Commentary:
31+
;;
32+
;; Haskell-Snippets is a collection of YASnippet Haskell snippets for Emacs.
33+
;;
34+
;; Available Expansion Keys:
35+
;;
36+
;; new - newtype
37+
;; mod - module [simple, exports]
38+
;; main - main module and function
39+
;; let - let bindings
40+
;; lang - language extension pragmas
41+
;; opt - GHC options pragmas
42+
;; \ - lambda function
43+
;; inst - instance declairation
44+
;; imp - import modules [simple, qualified]
45+
;; if - if conditional [inline, block]
46+
;; <- - monadic get
47+
;; fn - top level function [simple, guarded, clauses]
48+
;; data - data type definition [inline, record]
49+
;; => - type constraint
50+
;; {- - block comment
51+
;; case - case statement
52+
;;
53+
;; Design Ideals:
54+
;;
55+
;; Keep snippet keys (the prefix used to auto-complete) to four
56+
;; characters or less while still being as easy to guess as
57+
;; possible.
58+
;;
59+
;; Have as few keys as possible. The more keys there are to
60+
;; remember, the harder snippets are to use and learn.
61+
;;
62+
;; Leverage ido-mode when reasonable. For instance, to keep the
63+
;; number of snippet keys to a minimum as well as auto complete
64+
;; things like Haskell Langauge Extension Pragmas. When multiple
65+
;; snippets share a key (ex: 'fn'), the ido-mode prompts are unique to
66+
;; one character (ex: 'guarded function' and 'simple function' are 'g' and
67+
;; 's' respectively).
68+
2769
;;; Code:
2870

2971
(setq haskell-snippets-dir

0 commit comments

Comments
 (0)