Request for example of putting LaTeX in Haskell code comments for Haddock processing.

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

example with both below [and its rendering further down]
syntax:
- \( \) for inline and
- \[ \] for block
[image: image.png]
[image: image.png]
On Wed, Sep 12, 2018 at 10:02 PM 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 To (un)subscribe, modify options or view archives go to: 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

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
On Sep 13, 2018, at 7:23 AM, Frederic Cogny
wrote: example with both below [and its rendering further down]
syntax: - \( \) for inline and - \[ \] for block
On Wed, Sep 12, 2018 at 10:02 PM David Banas
mailto:capn.freako@gmail.com> wrote: 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 To (un)subscribe, modify options or view archives go to: 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

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.htm... http://hackage.haskell.org/package/containers-0.6.0.1/docs/Data-Sequence.htm...) using Safari 11.1.2 with macOS Sierra 10.12.6. The only extension installed is a divx html 5 video player. Regards, Andrew
On 13 Sep 2018, at 17:04, David Banas
wrote: 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
On Sep 13, 2018, at 7:23 AM, Frederic Cogny
mailto:frederic.cogny@gmail.com> wrote: example with both below [and its rendering further down]
syntax: - \( \) for inline and - \[ \] for block
On Wed, Sep 12, 2018 at 10:02 PM David Banas
mailto:capn.freako@gmail.com> wrote: 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 To (un)subscribe, modify options or view archives go to: 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 To (un)subscribe, modify options or view archives go to: 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 Lero@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/ --------------------------------------------------------------------

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 ?

Check out Data.Sequence, which uses it throughout.
On Wed, Sep 12, 2018, 4:02 PM 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 To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (5)
-
Andrew Butterfield
-
David Banas
-
David Feuer
-
Frederic Cogny
-
Neil Mayhew