vim-hs-module-name is a Vim plugin that infers and inserts the Haskell module name. Please see the github page for details: https://github.com/feuerbach/vim-hs-module-name Roman