summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.lagda
diff options
context:
space:
mode:
authorTim Baumann <tim@timbaumann.info>2013-05-19 20:58:32 +0200
committerTim Baumann <tim@timbaumann.info>2013-05-19 20:58:32 +0200
commit91aeb371752f8c10dda0bbc156452bcb6839bd21 (patch)
tree6b92995e96056519efe0492ae1764c4e95d57eb1 /tests/examplefiles/example.lagda
parentbc00600db992c277770fd3651e8a49aca4b58303 (diff)
downloadpygments-91aeb371752f8c10dda0bbc156452bcb6839bd21.tar.gz
Test files for Agda and literate Agda mode
Diffstat (limited to 'tests/examplefiles/example.lagda')
-rw-r--r--tests/examplefiles/example.lagda19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/examplefiles/example.lagda b/tests/examplefiles/example.lagda
new file mode 100644
index 00000000..b5476fa0
--- /dev/null
+++ b/tests/examplefiles/example.lagda
@@ -0,0 +1,19 @@
+\documentclass{article}
+% this is a LaTeX comment
+\usepackage{agda}
+
+\begin{document}
+
+Here's how you can define \emph{RGB} colors in Agda:
+
+\begin{code}
+module example where
+
+open import Data.Fin
+open import Data.Nat
+
+data Color : Set where
+ RGB : Fin 256 → Fin 256 → Fin 256 → Color
+\end{code}
+
+\end{document} \ No newline at end of file