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

Daniel Trstenjak daniel.trstenjak at gmail.com
Sat Jan 4 14:49:18 UTC 2014


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


More information about the Haskell-Cafe mailing list