Dependency Generation

Steinitz, Dominic J
07 Aug 2001 09:13:52 Z

I didn't realise I also had to put this on the line that works out the dependencies. In hindsight it's obvious. Perhaps the documentation could be updated with a note? I'd be happy to supply some text. Dominic. on 07/08/2001 10:07:00
To:	Dominic Steinitz
Subject:	RE: Dependency Generation

> I'm getting the following error using the instructions in
> Dependency
> Generation.
> [dominic@r341-02 webldap]$ make depend
> ghc -M -cpp Add.hs EnvPassed.hs ParseError.hs Search.hs
> ASNv1.hs Counter.hs GetO
> pt.hs ParseExpr.hs StdTokenDef.hs Basev1.hs DecodeAll.hs
> Hello.hs ParseLib.hs Ta
> gsv1.hs CGI.hs Decode.hs HTML.hs Parser.hs TokenDef.hs
> CGISystem.hs Delete.hs HT
> MLWizard.hs ParseToken.hs UrlEncoded.hs Classv1.hs DoAdd.hs
> ldapHTML.hs Pretty.h
> s WebSite.hs CL.hs DoDelete.hs LdapTypesv2.hs QL.hs
> X690Utilsv2.hs Client2.hs Do
> Modify.hs Mime.hs query.hs client.hs DoSearch.hs Modify.hs
> Request.hs Client.hs
> Env.hs oldDecodeAll.hs Response.hs
> Basev1.hs: can't find one of the following: `Word.hi'
> `Word.hs' `Word.lhs'
> make: *** [depend] Error 1
> [dominic@r341-02 webldap]$

Just add the same -package options when you use ghc -M as you would when
compiling any of the modules.  i.e. in this case adding -package lang
will help GHC find the Word module (but it won't be included in the
dependency output).


21st century air travel