Relative-indentation.lagda.tex 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}
  5. postulate
  6. A B
  7. C : Set
  8. \end{code}
  9. \begin{code}
  10. postulate
  11. D E
  12. F : Set
  13. \end{code}
  14. \begin{code}
  15. postulate
  16. G H : Set
  17. I
  18. J : Set
  19. \end{code}
  20. \begin{AgdaMultiCode}
  21. \begin{code}
  22. postulate
  23. K L
  24. \end{code}
  25. \begin{code}
  26. M : Set
  27. \end{code}
  28. \end{AgdaMultiCode}
  29. \begin{code}
  30. record R : Set₁ where
  31. field N :
  32. Set
  33. \end{code}
  34. % There is (and should be) trailing whitespace at the end of some
  35. % lines below.
  36. \begin{AgdaAlign}
  37. text \begin{code}
  38. module _ where
  39. \end{code} more text
  40. also text \begin{code}
  41. postulate O : Set
  42. \end{code} text again
  43. text \begin{code}
  44. postulate o : O
  45. \end{code} text
  46. \end{AgdaAlign}
  47. \begin{code}
  48. postulate
  49. P : Set
  50. \end{code}
  51. \begin{code}
  52. module _ where
  53. postulate
  54. Q : Set
  55. \end{code}
  56. \begin{code}
  57. module _ where
  58. postulate
  59. S : Set
  60. \end{code}
  61. \begin{AgdaMultiCode}
  62. \begin{code}
  63. module _ where
  64. \end{code}
  65. \begin{code}
  66. postulate T : Set
  67. U : Set
  68. \end{code}
  69. \end{AgdaMultiCode}
  70. \begin{AgdaSuppressSpace}
  71. \begin{code}
  72. module _ where
  73. \end{code}
  74. \begin{code}
  75. postulate V : Set
  76. W : Set
  77. \end{code}
  78. \end{AgdaSuppressSpace}
  79. \begin{code}
  80. X : Set₁
  81. X =
  82. Set
  83. \end{code}
  84. \begin{code}
  85. Y : Set₁
  86. Y = Set
  87. Zzzzzzzzz : Set → Set
  88. Zzzzzzzzz X
  89. = X
  90. \end{code}
  91. \end{document}