Szukam lint kodu, kwerendy typu, auto-insert i pomocnika misc do użycia z vim (jak autouzupełnianie).Co jest różne wśród hlint, hdevtools i ghc-mod
Po niektórych badań znalazłem wiele podobnych narzędzi, które migth robić co chcę
- hlint
- hdevtools
- ghc-mod
Głównym pytaniem, Czy to wszystko w zasadzie to samo narzędzie?
Kiedy zrobić kilka testów stwierdziliśmy, że tylko ghc-mod działa out-of-the-box (dla kodu szarpie, havn't spróbować żadnej funkcji typu pomocnika)
$ 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
Czy muszę utworzyć dowolny plik konfiguracyjny dla hlint i 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
Wszystkie narzędzia został zainstalowany przez stack install
i mam /home/wizzup/.local/bin
w $PATH