Haskell: Correct module Main expansion

This commit is contained in:
Louis Pilfold 2015-11-28 22:56:04 +00:00
parent 4491460074
commit fa69fcdc0b

View File

@ -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 ()