SublimeHaskell package has a snippet to insert a if-then-else “block” in code…
<snippet>
<content><![CDATA[if ${1:condition} then ${2:expression} else ${3:expression}]]></content>
<tabTrigger>if</tabTrigger>
<scope>source.haskell</scope>
<description>if-then-else</description>
</snippet>
It is ok, but it would be great if the snippet text could be automatically aligned with the snippet entry point, like this:
someFunction par1 par2 = if test
then Nothing
else Just (something)
Is this possible?