aboutsummaryrefslogtreecommitdiff
path: root/latex-test/ref/LinearTypes/LinearTypes.tex
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2020-12-16 20:03:14 +0100
committerGitHub <noreply@github.com>2020-12-16 20:03:14 +0100
commitb4b4d896d2d68d6c48e7db7bfe95c185ca0709cb (patch)
tree7831f2cdb6cb4e65a7761f8f61d341cb1e6c31f4 /latex-test/ref/LinearTypes/LinearTypes.tex
parent059acb11d6134ee0d896bcf73c870958557a3909 (diff)
Display linear/multiplicity arrows correctly (#1238)
Previously we were ignoring multiplicity and displayed a %1 -> b as a -> b.
Diffstat (limited to 'latex-test/ref/LinearTypes/LinearTypes.tex')
-rw-r--r--latex-test/ref/LinearTypes/LinearTypes.tex30
1 files changed, 30 insertions, 0 deletions
diff --git a/latex-test/ref/LinearTypes/LinearTypes.tex b/latex-test/ref/LinearTypes/LinearTypes.tex
new file mode 100644
index 00000000..d02b6aa7
--- /dev/null
+++ b/latex-test/ref/LinearTypes/LinearTypes.tex
@@ -0,0 +1,30 @@
+\haddockmoduleheading{LinearTypes}
+\label{module:LinearTypes}
+\haddockbeginheader
+{\haddockverb\begin{verbatim}
+module LinearTypes (
+ unrestricted, linear, poly
+ ) where\end{verbatim}}
+\haddockendheader
+
+\begin{haddockdesc}
+\item[\begin{tabular}{@{}l}
+unrestricted\ ::\ a\ ->\ b
+\end{tabular}]\haddockbegindoc
+Does something unrestricted.\par
+
+\end{haddockdesc}
+\begin{haddockdesc}
+\item[\begin{tabular}{@{}l}
+linear\ ::\ a\ {\char '45}1\ ->\ b
+\end{tabular}]\haddockbegindoc
+Does something linear.\par
+
+\end{haddockdesc}
+\begin{haddockdesc}
+\item[\begin{tabular}{@{}l}
+poly\ ::\ a\ {\char '45}m\ ->\ b
+\end{tabular}]\haddockbegindoc
+Does something polymorphic.\par
+
+\end{haddockdesc} \ No newline at end of file