Only load modules once when typechecking with GHC.    This still doesn't fix the memory leak since the typechecked source is retained and then processed separately.  To fix the leak, modules must be processed directly after typechecking.
Only load modules once when typechecking with GHC.
  
This still doesn't fix the memory leak since the typechecked source is
retained and then processed separately.  To fix the leak, modules must
be processed directly after typechecking.

Fuuzetsu/haddock,lamefun/haddock,JPMoresmau/haddock,randen/haddock,esmolanka/haddock,jstolarek/haddock,jgm/haddock,Helkafen/haddock,Acidburn0zzz/haddock,haskell/haddock,mrBliss/haddock,beni55/haddock,Mistuke/haddock,mrBliss/haddock,Wizek/haddock,Mistuke/haddock,adamse/haddock,Acidburn0zzz/haddock,JPMoresmau/haddock,Acidburn0zzz/haddock,niteria/haddock,Mistuke/haddock,beni55/haddock,beni55/haddock,mrhania/haddock,adamse/haddock,esmolanka/haddock,idontgetoutmuch/haddock,randen/haddock,jstolarek/haddock,mrhania/haddock,Wizek/haddock,lamefun/haddock,haskell/haddock,haskell/haddock,adamse/haddock,niteria/haddock,sboosali/haddock,Fuuzetsu/haddock,jgm/haddock,Wizek/haddock,Fuuzetsu/haddock,sboosali/haddock,haskell/haddock,haskell/haddock,mrBliss/haddock,lamefun/haddock,niteria/haddock,Helkafen/haddock,Fuuzetsu/haddock,esmolanka/haddock,randen/haddock,idontgetoutmuch/haddock,mrhania/haddock,sboosali/haddock,idontgetoutmuch/haddock,JPMoresmau/haddock,Helkafen/haddock