Avoiding recompilation when types don't change

I have a large Haskell project with many packages built with a stack. I have a lot of recompilation time when I make trivial changes to the base model or some configuration data without changing any types .

If this is C, I would have to recompile the modified object file and then re-link the entire project. In Haskell, I have to recompile each module, which depends on the changed module.

I understand that this allows you to optimize all kinds of compiler, but I'm looking for a way around this in order to have a quick recompilation during development. Is there a way to do this in Haskell?

+6
source share

Source: https://habr.com/ru/post/1013892/


All Articles