vimrc/sources_non_forked/vim-snippets/UltiSnips/haskell.snippets

14 lines
303 B
Text
Raw Normal View History

2017-11-24 13:59:41 +00:00
priority -50
2020-12-04 21:15:32 +00:00
snippet imp "Simple import"
import ${1:${2:Data}.${0:Text}}
endsnippet
snippet imp2 "Selective import" b
import ${1:${2:Data}.${3:Text}} (${4})${0}
endsnippet
2017-11-24 13:59:41 +00:00
snippet impq "Qualified import"
2020-12-04 21:15:32 +00:00
import qualified ${1:${2:Data}.${3:Text}} as ${0:`!p snip.rv = t[1].split(".")[-1]`}
2017-11-24 13:59:41 +00:00
endsnippet