Image 01 Image 02

Link your Haskell function names to Hoogle

Posted on 31st October 2012 by Sebastian
0

Next time you typeset a LaTeX document, where you discuss some Haskell code, consider using the following command to typeset the name:

That is, instead of I use the function \texttt{liftM2} to lift ..., use I use the function \hoogle{liftM2} to lift ....

What the command does is not only format the function name in a fixed-width font using \texttt, but also link it to a Hoogle-search, to allow the reader to easily look up what the function does, in case it’s unknown to them.



Leave a reply...