[Haskell-cafe] haddock-2.3.0 error: file name does not match module name

David Waern david.waern at gmail.com
Thu Jan 29 15:52:24 EST 2009


2009/1/29 Alistair Bayley <alistair at abayley.org>:
> 2009/1/29 Matthijs Kooijman <matthijs at stdin.nl>:
>>> I assume that it's procesing file Database.Enumerator.lhs when it
>>> emits this, but I'm puzzled because the module name in
>>> Database.Enumerator.lhs is certainly Database.Enumerator, and not
>>> Main.
>> Any chance the module statement in the file is wrong? I think I remember
>> seeing this error once when I accidentally typed Module instead of module.
>> Apparently ghc assumes "Main" when there is no valid module statement.
>
> It's not this, but it certainly looks like something similar is
> confusing haddock.

This has been reported before:

  http://trac.haskell.org/haddock/ticket/73#comment:4

Not sure what's going on yet. If anyone's got a minimal test-case,
that'd be great.

David


More information about the Haskell-Cafe mailing list