id	summary	reporter	owner	description	type	status	priority	milestone	version	resolution	keywords	cc
58	internal Haddock or GHC error with --source-entity arg	NeilMitchell		"Bug reported on the Hoogle bug tracker (http://code.google.com/p/ndmitchell/issues/detail?id=95) which is really a Haddock bug. See Haddock.Backends.HTML for where the error is being thrown from.

{{{
What steps will reproduce the problem?
1. src/darcs$ haddock --ignore-all-exports --optghc=-I. --optghc=-I./src
--optghc=-i./src -B `ghc --p\
rint-libdir` -o api-doc -h --source-base=../src
--source-module=../src/%M.lhs --source-entity=../src/%M.lhs  src/darcs.lhs
 haddock --ignore-all-exports --optghc=-I. --optghc=-I./src
--optghc=-i./src -B `ghc --print-libdir` -o api-doc -h --sourc\
e-base=../src --source-module=../src/%M.lhs
--source-entity='../src/%M.lhs#%N'  src/darcs.lhs    # (similar to darcs'
make api-doc)
2.
3.

What is the expected output? What do you see instead?
Expected success, got output ending with:

haddock: internal Haddock or GHC error: This shouldn't happen (topDeclBox)


What version of the product are you using? On what operating system?
(Saying ""latest"" is fine, especially for Hoogle web search)
Latest, ubuntu hardy.

Please provide any additional information below.
I am sm on irc.freenode.net.
}}}"	defect	closed	major			fixed		
