On Fri, Dec 12, 2008 at 13:22, Thomas Schilling wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The fromJust error is a bug, of course, however, the underlying<br>

problem is a bit more difficult:<br>
<br>
Haddock doesn&#39;t generate any code, it only typechecks. &nbsp;If the code<br>
uses Template Haskell, however, the typechecker will have to run<br>
Haskell code and potentially this code will have to come from a module<br>
of the same package. &nbsp;If the code indeed comes from the same package,<br>
fixing the fromJust error will just lead to GHCi linker error, since<br>
Haddock didn&#39;t generate any code for these.<br>
</blockquote><div><br>Thanks for enlightening us, Thomas.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here are a couple of solutions and non-solutions:</blockquote>
<div><br>[...]<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Any other?</blockquote><div><br>
What about the eventual (maybe never?) solution of collecting comments and types for Haddock after splicing in code? This is more long term, perhaps, but in the end ideal if it can be made to work.<br><br>Regards,<br>Sean<br>
</div></div>