Speed up compilation in GHC

后端 未结 2 775
说谎
说谎 2021-02-14 16:26

Is there options, except -O0, that can speed up compilation time?

It\'s not matter if resulting programs will be not optimised. Actually I want to just type

相关标签:
2条回答
  • 2021-02-14 17:01

    Looks like a task for hdevtools! Hdevtools is used to as a backend for vim-plugin of the same name and it provides speedy syntax and type checking, directly from the editor. It is about as fast as ghci when reloading modules. I assume that it can be used from the command line.

    Another alternative would be to keep a ghci instance running and use that to type check your modules.

    0 讨论(0)
  • 2021-02-14 17:07

    I've found splitting up large files can speed up compilation.

    0 讨论(0)
提交回复
热议问题