bug in dependency generation

Alastair Reid reid at cs.utah.edu
Thu Apr 19 22:49:25 EDT 2001


Running this:

----------------------------
cat > PPUnits.hs << EOF
module PPUnits
	( defns          
	) where

addunit (is,es,cs,deps,gls,gs,defs,bs)
  =  text "" <+> vlist2 lbrack comma rbrack (map import' is) <> semi
EOF

ghc-5.00 -M PPUnits.hs
----------------------------

(on a Debian Linux box using a CVS snapshot from this morning) results
in this curious error:

  PPUnits.hs: can't find one of the following: `is.hi' `is.hs' `is.lhs'

Obviously, the dependency generating code is being confused by the
function name "import'".  I'd go fix the relevant regexp myself except
that I can't figure out where it lives.

I'd really appreciate it if you could suggest a patch or workaround.
The best option I can think of is to use ghc-4.x to generate
dependencies and ghc-5.x to compile code. Blech!


-- 
Alastair Reid        reid at cs.utah.edu        http://www.cs.utah.edu/~reid/




More information about the Glasgow-haskell-bugs mailing list