From a83b1b160e7366017107a9a99f56cf3188c49788 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Tue, 9 Jul 2013 19:40:01 -0700 Subject: [PATCH] Improve Haskell snip. --- autoload/neosnippet/snippets/haskell.snip | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autoload/neosnippet/snippets/haskell.snip b/autoload/neosnippet/snippets/haskell.snip index c708575..3e2a392 100644 --- a/autoload/neosnippet/snippets/haskell.snip +++ b/autoload/neosnippet/snippets/haskell.snip @@ -21,3 +21,12 @@ abbr main = do main = do ${0} +snippet class +options head + class ${1:Class} ${2:a} where + ${3:function} :: ${4:Type} + +snippet instance +options head + instance ${1:Class} ${2:Type} where + ${3:function} ${4:self} = ${0:TARGET}