Indenting6.quick.tex 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. \begin{code}%
  44. \>[0]\AgdaKeyword{record}\AgdaSpace{}%
  45. \AgdaRecord{Equiv}\AgdaSpace{}%
  46. \AgdaSymbol{(}\AgdaBound{X}\AgdaSpace{}%
  47. \AgdaBound{Y}\AgdaSpace{}%
  48. \AgdaSymbol{:}\AgdaSpace{}%
  49. \AgdaPrimitive{Set}\AgdaSymbol{)}\AgdaSpace{}%
  50. \AgdaSymbol{:}\AgdaSpace{}%
  51. \AgdaPrimitive{Set}\AgdaSpace{}%
  52. \AgdaKeyword{where}\<%
  53. \\
  54. \>[0][@{}l@{\AgdaIndent{0}}]%
  55. \>[2]\AgdaKeyword{field}\<%
  56. \\
  57. \>[2][@{}l@{\AgdaIndent{0}}]%
  58. \>[4]\AgdaField{to}%
  59. \>[10]\AgdaSymbol{:}\AgdaSpace{}%
  60. \AgdaBound{X}\AgdaSpace{}%
  61. \AgdaSymbol{→}\AgdaSpace{}%
  62. \AgdaBound{Y}\<%
  63. \\
  64. %
  65. \>[4]\AgdaField{from}%
  66. \>[10]\AgdaSymbol{:}\AgdaSpace{}%
  67. \AgdaBound{Y}\AgdaSpace{}%
  68. \AgdaSymbol{→}\AgdaSpace{}%
  69. \AgdaBound{X}\<%
  70. \end{code}
  71. \end{document}