12345678910111213141516171819202122232425262728 |
- \documentclass{article}
- \usepackage{agda}
- \begin{document}
- \begin{code}%
- \>[0]\AgdaKeyword{data}\AgdaSpace{}%
- \AgdaDatatype{Nat}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\AgdaSpace{}%
- \AgdaKeyword{where}\<%
- \\
- \>[0][@{}l@{\AgdaIndent{0}}]%
- \>[2]\AgdaInductiveConstructor{zero}%
- \>[8]\AgdaSymbol{:}\AgdaSpace{}%
- \AgdaDatatype{Nat}\<%
- \\
- %
- \>[2]\AgdaInductiveConstructor{suc}%
- \>[8]\AgdaSymbol{:}\AgdaSpace{}%
- \AgdaDatatype{Nat}\AgdaSpace{}%
- \AgdaSymbol{->}\AgdaSpace{}%
- \AgdaDatatype{Nat}\<%
- \end{code}
- \end{document}
|