summaryrefslogtreecommitdiff
path: root/testcode/test1.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'testcode/test1.lhs')
-rw-r--r--testcode/test1.lhs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testcode/test1.lhs b/testcode/test1.lhs
new file mode 100644
index 0000000..3c19a70
--- /dev/null
+++ b/testcode/test1.lhs
@@ -0,0 +1,15 @@
+\documentstyle{article}
+
+\begin{document}
+
+\section{Introduction}
+
+This is a trivial program that prints the first 20
+factorials. It should have 2 lines of code.
+
+\begin{code}
+main :: IO ()
+main = print [ (n, product [1..n]) | n <- [1..20]]
+\end{code}
+
+\end{document}