Indenting2.quick.tex 540 B

12345678910111213141516171819202122232425262728
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}%
  5. \>[0]\AgdaKeyword{data}\AgdaSpace{}%
  6. \AgdaDatatype{Nat}\AgdaSpace{}%
  7. \AgdaSymbol{:}\AgdaSpace{}%
  8. \AgdaPrimitive{Set}\AgdaSpace{}%
  9. \AgdaKeyword{where}\<%
  10. \\
  11. \>[0][@{}l@{\AgdaIndent{0}}]%
  12. \>[2]\AgdaInductiveConstructor{zero}%
  13. \>[8]\AgdaSymbol{:}\AgdaSpace{}%
  14. \AgdaDatatype{Nat}\<%
  15. \\
  16. %
  17. \>[2]\AgdaInductiveConstructor{suc}%
  18. \>[8]\AgdaSymbol{:}\AgdaSpace{}%
  19. \AgdaDatatype{Nat}\AgdaSpace{}%
  20. \AgdaSymbol{->}\AgdaSpace{}%
  21. \AgdaDatatype{Nat}\<%
  22. \end{code}
  23. \end{document}