Issue1618.lagda 575 B

123456789101112131415161718192021222324252627282930313233
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \setlength{\parindent}{0pt}
  4. \setlength{\parskip}{1ex}
  5. \begin{document}
  6. The let should be properly aligned in the following code:
  7. \begin{code}
  8. id : (A : Set) → A → A
  9. id A =
  10. let
  11. id' : B → B
  12. id' = λ a → a
  13. in id'
  14. where
  15. B : Set
  16. B = A
  17. \end{code}
  18. This should also work if the new block is following after the
  19. keyword, as opposed to on a new line.
  20. \begin{code}
  21. di : (A : Set) → A → A
  22. di A =
  23. let id' : B → B
  24. id' = λ a → a
  25. in id'
  26. where B : Set
  27. B = A
  28. \end{code}
  29. \end{document}