Speed up compilation in GHC

后端 未结 2 774
说谎
说谎 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.

提交回复
热议问题