Last active
August 29, 2015 14:07
-
-
Save axman6/4086c23df563262f302e to your computer and use it in GitHub Desktop.
Haskell double import snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<!-- | |
Produces imports of the form: | |
import qualified Data.Foo as F | |
import Data.Foo (Foo, fun) | |
Foo and F in as and includes sections are determined by the last | |
name in the module string: Foo -> F and Foo, Data.Foo -> F and Foo | |
--> | |
<content><![CDATA[ | |
import qualified ${1:Data.Text} as ${2:${1/(\w+\.)*(\w)\w*/$2/}} | |
import $1 (${3:${1/(\w+\.)*(\w+)/$2/}}${4:, fun}) | |
$0 | |
]]></content> | |
<tabTrigger>impq</tabTrigger> | |
<scope>source.haskell</scope> | |
<description>Import module qualified and unqualified</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment