more sophisticated module version

This commit is contained in:
Marc Weber 2012-04-30 22:59:15 +02:00
parent e346e77c2f
commit 55bc3b656f

View File

@ -25,9 +25,10 @@ snippet class
class ${1:Class} a where
${2}
snippet module
module ${1:Module} (
${2}
) where
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
) where
`expand('%') =~ 'Main' ? "\n\nmain = do\n print \"hello world\"" : ""`
snippet const
${1:name} :: ${2:a}
$1 = ${3:undefined}