[Haskell-cafe] faster compiling for ghc

John Meacham john at repetae.net
Thu Nov 19 00:13:59 EST 2009

A good trick is to use NOINLINE and restricted module exports to ensure
changes in one module don't cause others to be recompiled. A common
idiom is something like.

module TypeAnalysis(typeAnalyze) where

where the module is a fairly large complicated beast, but it just has
the single entry point of typeAnalyze, by putting a 
{-# NOINLINE typeAnalyze #-} in there, you can be sure that changes to
the module don't cause other modules to be recompiled in general.


John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/

More information about the Haskell-Cafe mailing list