Discussion:
[Haskell-cafe] Request for example of putting LaTeX in Haskell code comments for Haddock processing.
David Banas
2018-09-12 20:01:59 UTC
Permalink
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db
Frederic Cogny
2018-09-13 14:23:40 UTC
Permalink
example with both below [and its rendering further down]

syntax:
- \( \) for inline and
- \[ \] for block

[image: image.png]


[image: image.png]
Post by David Banas
Hi all,
Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX
in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.
Thanks!
-db
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69
David Banas
2018-09-13 16:04:54 UTC
Permalink
Thanks!

I’m using the same syntax you are, but not seeing rendered equations in the resultant HTML, when viewed in Safari.
(I’m about to try some other browsers.)
I don’t need to give haddock any special option, do I?
Is this a known issue w/ Safari?
Is there a plug-in I need to install?

Thanks,
-db
Post by Frederic Cogny
example with both below [and its rendering further down]
- \( \) for inline and
- \[ \] for block
<image.png>
<image.png>
Hi all,
Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.
Thanks!
-db
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe <http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe>
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69
Andrew Butterfield
2018-09-13 17:12:19 UTC
Permalink
Hi David,

I can see the ones in Data.Sequence

(e.g. http://hackage.haskell.org/package/containers-0.6.0.1/docs/Data-Sequence.html#g:1 <http://hackage.haskell.org/package/containers-0.6.0.1/docs/Data-Sequence.html#g:1>)

using Safari 11.1.2 with macOS Sierra 10.12.6. The only extension installed is a divx html 5 video player.


Regards, Andrew
Post by David Banas
Thanks!
I’m using the same syntax you are, but not seeing rendered equations in the resultant HTML, when viewed in Safari.
(I’m about to try some other browsers.)
I don’t need to give haddock any special option, do I?
Is this a known issue w/ Safari?
Is there a plug-in I need to install?
Thanks,
-db
Post by Frederic Cogny
example with both below [and its rendering further down]
- \( \) for inline and
- \[ \] for block
<image.png>
<image.png>
Hi all,
Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.
Thanks!
-db
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe <http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe>
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
--------------------------------------------------------------------
Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204
***@TCD, Head of Foundations & Methods Research Group
School of Computer Science and Statistics,
Room G.39, O'Reilly Institute, Trinity College, University of Dublin
http://www.scss.tcd.ie/Andrew.Butterfield/
--------------------------------------------------------------------
Neil Mayhew
2018-09-13 17:33:50 UTC
Permalink
You do need to have JavaScript enabled, because the math rendering is
being done with MathJax.

What do you see at https://www.mathjax.org/#samples ?

David Feuer
2018-09-13 14:29:47 UTC
Permalink
Check out Data.Sequence, which uses it throughout.
Post by David Banas
Hi all,
Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX
in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.
Thanks!
-db
_______________________________________________
Haskell-Cafe mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Loading...