Indenting5.quick.tex 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}%
  5. \>[0]\AgdaKeyword{record}\AgdaSpace{}%
  6. \AgdaRecord{Sigma}\AgdaSpace{}%
  7. \AgdaSymbol{(}\AgdaBound{A}\AgdaSpace{}%
  8. \AgdaSymbol{:}\AgdaSpace{}%
  9. \AgdaPrimitive{Set}\AgdaSymbol{)}\AgdaSpace{}%
  10. \AgdaSymbol{(}\AgdaBound{B}\AgdaSpace{}%
  11. \AgdaSymbol{:}\AgdaSpace{}%
  12. \AgdaBound{A}\AgdaSpace{}%
  13. \AgdaSymbol{→}\AgdaSpace{}%
  14. \AgdaPrimitive{Set}\AgdaSymbol{)}\AgdaSpace{}%
  15. \AgdaSymbol{:}\AgdaSpace{}%
  16. \AgdaPrimitive{Set}\AgdaSpace{}%
  17. \AgdaKeyword{where}\<%
  18. \\
  19. \>[0][@{}l@{\AgdaIndent{0}}]%
  20. \>[2]\AgdaKeyword{constructor}\AgdaSpace{}%
  21. \AgdaOperator{\AgdaInductiveConstructor{\AgdaUnderscore{},\AgdaUnderscore{}}}\<%
  22. \\
  23. %
  24. \>[2]\AgdaKeyword{field}\<%
  25. \\
  26. \>[2][@{}l@{\AgdaIndent{0}}]%
  27. \>[4]\AgdaField{proj₁}\AgdaSpace{}%
  28. \AgdaSymbol{:}\AgdaSpace{}%
  29. \AgdaBound{A}\<%
  30. \\
  31. %
  32. \>[4]\AgdaField{proj₂}\AgdaSpace{}%
  33. \AgdaSymbol{:}\AgdaSpace{}%
  34. \AgdaBound{B}\AgdaSpace{}%
  35. \AgdaField{proj₁}\<%
  36. \\
  37. %
  38. \\[\AgdaEmptyExtraSkip]%
  39. \>[0]\AgdaKeyword{open}\AgdaSpace{}%
  40. \AgdaModule{Sigma}\AgdaSpace{}%
  41. \AgdaKeyword{public}\<%
  42. \end{code}
  43. \end{document}