diff --git a/autoload/neosnippet/snippets/haskell.snip b/autoload/neosnippet/snippets/haskell.snip new file mode 100644 index 0000000..dbdb3d7 --- /dev/null +++ b/autoload/neosnippet/snippets/haskell.snip @@ -0,0 +1,22 @@ +snippet import +abbr import qualified ... as ... + import qualified ${1} as ${2} + +snippet importOnly +abbr import ... (...) + import ${1} (${2}) + +snippet language +abbr {-# LANGUAGE ... #-} + {-# LANGUAGE ${1} #-} + +# hard-tab is necessary +snippet case +abbr case ... of + case ${1} of + ${2} -> ${0} + +snippet main +abbr main = do + main = do + ${0} diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 3b0a8eb..b0fcba5 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -445,6 +445,7 @@ CHANGELOG *neosnippet-changelog* 2012-10-20 - Improved scala snip. +- Added haskell snip. 2012-10-19 - Fixed syntax highlight.