[Haddock] [haddock] #207: haddock: internal error: spliceURL UnhelpfulSpan

haddock haddock at projects.haskell.org
Mon Jun 18 18:29:03 BST 2012

#207: haddock: internal error: spliceURL UnhelpfulSpan
Reporter:  selinger  |       Owner:        
    Type:  defect    |      Status:  new   
Priority:  major     |   Milestone:  2.10.0
 Version:  2.9.4     |    Keywords:        
 With Haddock 2.8, I got this error message occasionally; with Haddock
 2.9.4, I get it *all the time*. Minimal example attached.

 The problem seems to arise when one has some function without a type
 signature, and the --source-entity option is used. The old behavior (2.8)
 was to ignore such a function. The new behavior is to generate the type
 signature, but then fail with the above error message.

 To reproduce:

 haddock -h HaddockBug.hs --source-entity=HaddockBug.html#line-%L

 Obviously, the above error message was not intended for end users;
 "Missing type signature" or "Can't find this line in your file" would be a
 better error message. Still better would be not to produce an error at

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

More information about the Haddock mailing list