Debian Codegraph @

tests/inputs/test1.lhs

raw
1 \documentstyle{article}
2
3 \begin{document}
4
5 \section{Introduction}
6
7 This is a trivial program that prints the first 20
8 factorials. It should have 2 lines of code.
9
10 \begin{code}
11 main :: IO ()
12 main = print [ (n, product [1..n]) | n <- [1..20]]
13 \end{code}
14
15 \end{document}