more sophisticated module version
This commit is contained in:
parent
e346e77c2f
commit
55bc3b656f
@ -25,9 +25,10 @@ snippet class
|
|||||||
class ${1:Class} a where
|
class ${1:Class} a where
|
||||||
${2}
|
${2}
|
||||||
snippet module
|
snippet module
|
||||||
module ${1:Module} (
|
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
|
||||||
${2}
|
|
||||||
) where
|
) where
|
||||||
|
`expand('%') =~ 'Main' ? "\n\nmain = do\n print \"hello world\"" : ""`
|
||||||
|
|
||||||
snippet const
|
snippet const
|
||||||
${1:name} :: ${2:a}
|
${1:name} :: ${2:a}
|
||||||
$1 = ${3:undefined}
|
$1 = ${3:undefined}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user