Unit tests for Literate Haskell
[ohcount] / test / src_dir / lithask2.lhs
1 \documentstyle{article}
2
3 \begin{document}
4
5 \section{Introduction}
6
7 Example taken from http://www.haskell.org/onlinereport/literate.html,
8 with additional tripping characters.
9
10 This is a trivial \begin{code}program\end{code} that prints the first 20 factorials.
11
12 \begin{code}
13 main :: IO ()
14 main =  print [ (n, product [1..n]) | n <- [1..20]]
15 \end{code}
16
17 \end{document}