diff options
author | David A. Wheeler <dwheeler@dwheeler.com> | 2013-08-25 08:16:13 -0400 |
---|---|---|
committer | David A. Wheeler <dwheeler@dwheeler.com> | 2013-08-25 08:16:13 -0400 |
commit | ba8f663f16c3e8c4abd2ef7ec5966a7dc338b962 (patch) | |
tree | c86c5d0b270f81c1fb72b5bb4a3db277ad2bd1e1 /testcode/test1.lhs | |
download | sloccount-git-ba8f663f16c3e8c4abd2ef7ec5966a7dc338b962.tar.gz |
Initial commit of version 2.26.
Diffstat (limited to 'testcode/test1.lhs')
-rw-r--r-- | testcode/test1.lhs | 15 |
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} |