diff .emacs.d/haskell-mode/snippets/haskell-mode/data.record @ 0:2764b4f45f9f

1st commit
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Mon, 21 Apr 2014 04:30:59 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.emacs.d/haskell-mode/snippets/haskell-mode/data.record	Mon Apr 21 04:30:59 2014 +0900
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# key: data
+# name: record data
+# condition: (= (length "data") (current-column))
+# contributor: Luke Hoersten <luke@hoersten.org>
+# --
+data ${1:Type} = $1
+    { ${2:field} :: ${3:Type}
+    , ${4:field} :: ${5:Type}$0
+    } ${6:deriving (${7:Show, Eq})}
\ No newline at end of file