On-the-fly typechecking is very slow
Bug description
On-the-fly typechecking seems to very slow on Haskero. The same project+file on spacemacs+Intero typechecks much faster.
Observed behaviour
Upon editing a file in the project, intero
task starts consuming ~95% CPU for about 60-300 secs, after which the compiler errors are shown in VSCode.
Expected behaviour
spacemacs+Intero typechecks the same file in under 5 seconds.
OS
Mac OSX 10.11.3 (El Capitan)
Plugin
Saurabhs-MacBook-Pro:vl-haskell saurabhnanda$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
Saurabhs-MacBook-Pro:vl-haskell saurabhnanda$ stack --version
Version 1.5.1, Git revision 89d34af1addf6c02cefef970e2fa395a96a30483 x86_64 hpack-0.18.1
Saurabhs-MacBook-Pro:vl-haskell saurabhnanda$ intero --version
0.1.16
VSCode version = Version 1.16.0 (1.16.0) // 787b31c0474e6165390b5a5989c9619e3e16f953
Steps to reproduce
It's very easy to reproduce on my machine, but I'm not sure how you can reproduce it. If it helps, my project has 1,091 Haskell source files, and the file that I'm referring to in this issue has a dependency graph of ~400 files (i.e. GHCi compiles about 400 files before it can finally compile this particular file.
If I try editing a file which has only about 10 dependencies, the type-checking seems to happen faster.
Please let me know how I can make my bug-report more useful.