[ANN] vim-hsimport - automatically create Haskell import statements

Hi all, vim-hsimport is a Vim plugin that automatically creates import statements for Haskell source files for the symbol/identifier under the cursor. vim-hsimport can create import statements for the whole module, for only the desired symbol/indentifier and is also able to create qualified module import statements. By using hdevtools in conjunction with a cabal sandbox, dynamically only the modules of packages are considered, which your project depends on. vim-hsimport does also consider the modules of your current project. If the symbol/identifier is contained in multiple modules, then a selection dialog is shown. In conjunction to the hsimport command the Vim plugin also uses the command hdevtools and the Vim plugin vim-hdevtools. Currently you need to use forks of hdevtools and vim-hdevtools to get a working version of vim-hsimport, please see the installation section for details. Currently the biggest issue is if and how modules of your current project are considered for the import, please see the issues section. https://github.com/dan-t/vim-hsimport Greetings, Daniel

Oh, my dream! Great!
2014/1/4 Daniel Trstenjak
Hi all,
vim-hsimport is a Vim plugin that automatically creates import statements for Haskell source files for the symbol/identifier under the cursor.
vim-hsimport can create import statements for the whole module, for only the desired symbol/indentifier and is also able to create qualified module import statements.
By using hdevtools in conjunction with a cabal sandbox, dynamically only the modules of packages are considered, which your project depends on.
vim-hsimport does also consider the modules of your current project.
If the symbol/identifier is contained in multiple modules, then a selection dialog is shown.
In conjunction to the hsimport command the Vim plugin also uses the command hdevtools and the Vim plugin vim-hdevtools.
Currently you need to use forks of hdevtools and vim-hdevtools to get a working version of vim-hsimport, please see the installation section for details.
Currently the biggest issue is if and how modules of your current project are considered for the import, please see the issues section.
https://github.com/dan-t/vim-hsimport
Greetings, Daniel _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

It's more or less a quite thin wrapper around the commands hsimport and hdevtools, so having support for other editors shouldn't be that much work. Greetings, Daniel

There has been an issue building hsimport from hackage which is now fixed with hsimport 0.2.6.3. Greetings, Daniel

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Please add a licence that permits us to use, improve and share it. - -- Alexander alexander@plaimi.net http://plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlLJTXIACgkQRtClrXBQc7WIcgD+N8hkrZHvdqlkvMPddjowxIwc ixCvoRm1jMp5oOv+WWQBALWs/ohWyXm9R09fJ9MCp19Bow8/ZwP6hPBz+U4KSBuR =QL+s -----END PGP SIGNATURE-----

On Sat, Jan 04, 2014 at 03:49:18PM +0100, Daniel Trstenjak wrote: [...]
Currently you need to use forks of hdevtools and vim-hdevtools to get a working version of vim-hsimport, please see the installation section for details.
Any luck with getting your changes to hdevtools and vim-hdevtools into upstream? /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus "Sendmail" and "make" are two well known programs that are pretty widely regarded as being debugged into existence. That's why their command languages are so poorly thought out and difficult to learn. It's not just you -- everyone finds them troublesome. -- Peter van der Linden, Expert C Programming, p. 220

On Sun, Jan 05, 2014 at 01:34:45PM +0100, Magnus Therning wrote:
Any luck with getting your changes to hdevtools and vim-hdevtools into upstream?
I've send pull requests for both and think that the addition is quite sensible and fitting into the scheme of hdevtools. So I'm hopeful for getting the additions merged. Greetings, Daniel
participants (4)
-
Alexander Berntsen
-
Daniel Trstenjak
-
Magnus Therning
-
Sergey Mironov