[Haddock] [haddock] #184: Internal failure w/ bad error message for section heading inside class

haddock haddock at projects.haskell.org
Sat Nov 5 09:20:04 GMT 2011


#184: Internal failure w/ bad error message for section heading inside class
---------------------+------------------------------------------------------
Reporter:  rrnewton  |       Owner:        
    Type:  defect    |      Status:  new   
Priority:  major     |   Milestone:  2.10.0
 Version:  2.9.2     |    Keywords:        
---------------------+------------------------------------------------------
 After a refactoring I ended up with something like the following:

 module FooM where
 class Foo d where
    foo :: d
    -- * Silly section
    bar :: d

 Which trips what seems to be an incomplete pattern match in Create.hs:

   haddock: internal error: unexpected argument to declNames

 Unfortunately since this had no line number a binary search for the
 offending part of the file ensued ;-).

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/184>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list