[Responding to an old (but still relevant) thread...]<br><br>I&#39;m getting this error as well, both in 2.3.0 and <a href="http://2.4.1.">2.4.1.</a><br><br>Suppose that I wanted to generate documentation for everything in my Cabal package except for the modules with Template Haskell in them. Is it enough to add {-# OPTIONS_HADDOCK hide #-} to each of these modules? I tried, but it didn&#39;t pan out like I hoped. I&#39;m still getting the same error. Is there something else I can do?<br>
<br>Thanks,<br>Sean<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 01:01, David Waern <span dir="ltr">&lt;<a href="mailto:david.waern@gmail.com">david.waern@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think this is a bug in Haddock related to template-haskell<br>
declarations. It will hopefully be fixed soon, but I&#39;m afraid it won&#39;t<br>
part of the 2.3.0 version that will come with GHC <a href="http://6.10.1." target="_blank">6.10.1.</a><br>
<br>
David<br>
<br>
2008/10/27 Leonidas Fegaras &lt;<a href="mailto:leofeg@hotmail.com">leofeg@hotmail.com</a>&gt;:<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; Sorry for the previous message. I am sending it again.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Dear fellow haskell programmers,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;I tried to install a package in hackageDB and got a strange error from<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;haddock:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;haddock: internal Haddock or GHC error: Maybe.fromJust: Nothing<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Here is the complete log:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://hackage.haskell.org/packages/archive/HXQ/0.10.0/logs/failure/ghc-6.8" target="_blank">http://hackage.haskell.org/packages/archive/HXQ/0.10.0/logs/failure/ghc-6.8</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;When I build it using Cabal <a href="http://1.6.0.1" target="_blank">1.6.0.1</a> and haddock 2.2.2 using &#39;runhaskell<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Setup.lhs haddock&#39;, it works fine (I get warnings but no errors).<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Also haddock 2.3.0 is not available in hackageDB so I can&#39;t test it<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;myself. Where I can find haddock 2.3.0?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Thank you for your help,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Leonidas Fegaras<br>
&gt;<br>
&gt; _________________________________________________________________<br>
&gt; Stay organized with simple drag and drop from Windows Live Hotmail.<br>
&gt; <a href="http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008_______________________________________________" target="_blank">http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008_______________________________________________</a><br>

&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>