aboutsummaryrefslogtreecommitdiff
path: root/latex-test/ref/DefaultSignatures/DefaultSignatures.tex
blob: 4dbcda49ae0ee80d39e45f7e3381d8a96518adef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\haddockmoduleheading{DefaultSignatures}
\label{module:DefaultSignatures}
\haddockbeginheader
{\haddockverb\begin{verbatim}
module DefaultSignatures (
    Foo(baz', baz, bar)
  ) where\end{verbatim}}
\haddockendheader

\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
class\ Foo\ a\ where
\end{tabular}]\haddockbegindoc
Documentation for Foo.\par

\haddockpremethods{}\emph{Methods}
\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
bar,\ baz\ ::\ a\ ->\ String
\end{tabular}]\haddockbegindoc
Documentation for bar and baz.\par

\end{haddockdesc}
\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
default\ bar\ ::\ Show\ a\ =>\ a\ ->\ String
\end{tabular}]
\end{haddockdesc}
\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
baz'\ ::\ String\ ->\ a
\end{tabular}]\haddockbegindoc
Documentation for baz'.\par

\end{haddockdesc}
\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
default\ baz'\ ::\ Read\ a\ =>\ String\ ->\ a
\end{tabular}]
\end{haddockdesc}
\end{haddockdesc}