<div dir="ltr">Hi,<div><br></div><div>I also support the idea of having Markdown for Haddock. Using some well established markup language would make Haddock much easier to adopt and use.</div><div><br></div><div>While I like the idea of allowing any markup language (let&#39;s say supported by Pandoc) and freedom it gives to developers, it also has also drawbacks: It makes contributing more difficult, if a project uses some wierd, non-standard markup language.</div>

<div><br></div><div>Concerning math expressions, what about using Markdown with MathJAX, like <a href="http://math.stackexchange.com">math.stackexchange.com</a> does?</div><div><br></div><div>  Best regards,</div><div>  Petr Pudlak</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/5 Andrew Butterfield <span dir="ltr">&lt;<a href="mailto:Andrew.Butterfield@scss.tcd.ie" target="_blank">Andrew.Butterfield@scss.tcd.ie</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m not proposing the LaTeX is used for hyperlinking the<br>
reference  -  hence my comment about nicely integrating<br>
<br>
Perhaps a \begin{haddock} ... \end{haddock} environment* ?<br>
<br>
* This would only affect those using LaTeX/lhs - everyone else could haddock** as usual<br>
<br>
** haddock = whatever markdow/up/sideways scheme you guys come up with...<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 5 Apr 2013, at 16:22, Aleksey Khudyakov wrote:<br>
<br>
&gt; On 5 April 2013 12:20, Andrew Butterfield<br>
&gt; &lt;<a href="mailto:Andrew.Butterfield@scss.tcd.ie">Andrew.Butterfield@scss.tcd.ie</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 4 Apr 2013, at 22:53, Aleksey Khudyakov wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; If we are going to change haddock syntax we should add ability to add<br>
&gt;&gt;&gt; math formulae to documentation. It&#39;s not currently possible and it makes<br>
&gt;&gt;&gt; documenting numeric code properly difficult.<br>
&gt;&gt;<br>
&gt;&gt; How about support for .lhs files?<br>
&gt;&gt; - both those with bird-tracks (which I don&#39;t use anymore)<br>
&gt;&gt;   and \begin{code}...\end{code} (which I do use).<br>
&gt;&gt;<br>
&gt;&gt; My .lhs files are also LaTeX sources - I guess some way to nicely integrate<br>
&gt;&gt; haddock markup/down/whatever with LaTeX stuff would be needed<br>
&gt;&gt;<br>
&gt; I&#39;m not sure that it would help. If we to use haddock markup it need to<br>
&gt; support math typesetting. And LaTeX IMHO isn&#39;t right tool for creating<br>
&gt; hyperlinked API reference<br>
&gt;<br>
&gt; _______________________________________________<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>
<br>
</div></div><div class="im HOEnZb">--------------------------------------------------------------------<br>
Andrew Butterfield     Tel: <a href="tel:%2B353-1-896-2517" value="+35318962517">+353-1-896-2517</a>     Fax: <a href="tel:%2B353-1-677-2204" value="+35316772204">+353-1-677-2204</a><br>
Lero@TCD, Head of Foundations &amp; Methods Research Group<br>
Director of Teaching and Learning - Undergraduate,<br>
School of Computer Science and Statistics,<br>
Room G.39, O&#39;Reilly Institute, Trinity College, University of Dublin<br>
                          <a href="http://www.scss.tcd.ie/Andrew.Butterfield/" target="_blank">http://www.scss.tcd.ie/Andrew.Butterfield/</a><br>
--------------------------------------------------------------------<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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></div>