I am looking for lint code, query type, auto type-insert and misc helper for use with vim (e.g. autocomplete).
After some research, I found some similar tools that migth do what I want
The main question is, Are these all basically the same tool?
When I do some testing, I find that only ghc-mod works ready (for lint code, havn't try any helper type function)
$ cat test.hs main = putStrLn "test" $ ghc-mod check test.hs test.hs:1:1:Warning: Top-level binding with no type signature: main :: IO () $ hdevtools check test.hs Run from outside a project, using implicit global project config $ hlint test.hs No hints
Do I need to create a configuration file for hlint and hdevtools?
$ hdevtools --version hdevtools: version 0.1.4.1 (ghc-8.0.1-x86_64-linux, cabal-1.24.0.0) $ hlint --version HLint v1.9.35, (C) Neil Mitchell 2006-2016 $ ghc-mod --version ghc-mod version 5.6.0.0 compiled by GHC 8.0.1 $ ghc --version The Glorious Glasgow Haskell Compilation System, version 8.0.1
All tools were installed by stack install
and I have /home/wizzup/.local/bin
in $PATH
source share