Haskell: Correct module Main expansion
This commit is contained in:
parent
4491460074
commit
fa69fcdc0b
@ -43,7 +43,7 @@ snippet class
|
|||||||
snippet module
|
snippet module
|
||||||
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
|
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
|
||||||
) where
|
) where
|
||||||
`expand('%') =~ 'a' ? "\nmain :: IO ()\nmain = undefined" : ""`
|
`expand('%') =~ 'Main' ? "\nmain :: IO ()\nmain = undefined" : ""`
|
||||||
|
|
||||||
snippet main
|
snippet main
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user