Ticket #184 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

Internal failure w/ bad error message for section heading inside class

Reported by: rrnewton Owned by:
Priority: major Milestone:
Version: 2.9.2 Keywords:


After a refactoring I ended up with something like the following:

module FooM where class Foo d where

d -- * Silly section

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 ;-).

Change History

Changed 6 years ago by rrnewton

Oops, the formatting above came out wrong. This should be a block quote:

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

Changed 6 years ago by rrnewton

Update: A small patch here:


In the above case we're hitting the "DocD" HsDecl? constructor. I don't know this code, but it would seem that there's no way to get a "name" from a DocD so I returned the empty list for that case.

Changed 6 years ago by waern

  • status changed from new to closed
  • resolution set to fixed

Patch applied, thanks!

Changed 5 years ago by anonymous

  • milestone 2.10.0 deleted

Milestone 2.10.0 deleted

Note: See TracTickets for help on using tickets.