[Haskell-beginners] import checking and filtering
Chaddaï Fouché
chaddai.fouche at gmail.com
Sat Oct 13 18:54:34 CEST 2012
On Fri, Oct 12, 2012 at 6:29 AM, Christopher Howard
<christopher.howard at frigidcode.com> wrote:
> Maybe I'm losing it, but I seem to remember, when I first started out
> with Haskell, using some program which would check the import list in
> each of my source files, and then it would output a new import list that
> only imported exactly those functions that my program actually used. At
> the time I didn't think that was important, but now I really want it,
> yet I can't remember which utility it was that did this. Does anyone
> happen to know which utility it is I'm thinking of?
This is in fact GHC with the -ddump-minimal-imports flag (it puts the
exact minimal imports in a file ModuleNam.imports)
--
Jedaï
More information about the Beginners
mailing list