There are currently no projects
This tab is intentionally left blank.
Next time you typeset a LaTeX document, where you discuss some Haskell code, consider using the following command to typeset the name:
% To be added to your preamble:
\usepackage{hyperref}
% Format function name and link to it on Hoogle
\newcommand{\hoogle}[1]{\href{http://www.haskell.org/hoogle/?hoogle=#1}{\texttt{#1}}}
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.
I find this absurd. Why'd you link to a search page when you (hopefully) refer to a particular function in a particular library?
For instance, consider http://www.haskell.org/hoogle/?hoogle=split. As a reader, I have no idea which I'm supposed to pick.
I'd prefer a listing of used library functions with their types and documentation in an appendix. That way I have everything I need even if I'm reading the report offline.