TeXExtension.quick.tex 936 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. Foo
  5. \begin{code}%
  6. \>[0]\<%
  7. \\
  8. \>[0]\AgdaKeyword{module}\AgdaSpace{}%
  9. \AgdaModule{TeXExtension}\AgdaSpace{}%
  10. \AgdaKeyword{where}\<%
  11. \\
  12. %
  13. \\[\AgdaEmptyExtraSkip]%
  14. \>[0][@{}l@{\AgdaIndent{0}}]%
  15. \>[2]\AgdaKeyword{data}\AgdaSpace{}%
  16. \AgdaDatatype{Bool}\AgdaSpace{}%
  17. \AgdaSymbol{:}\AgdaSpace{}%
  18. \AgdaPrimitive{Set}\AgdaSpace{}%
  19. \AgdaKeyword{where}\<%
  20. \\
  21. \>[2][@{}l@{\AgdaIndent{0}}]%
  22. \>[4]\AgdaInductiveConstructor{true}\AgdaSpace{}%
  23. \AgdaSymbol{:}\AgdaSpace{}%
  24. \AgdaDatatype{Bool}\<%
  25. \\
  26. %
  27. \>[4]\AgdaInductiveConstructor{false}\AgdaSpace{}%
  28. \AgdaSymbol{:}\AgdaSpace{}%
  29. \AgdaDatatype{Bool}\<%
  30. \\
  31. %
  32. \\[\AgdaEmptyExtraSkip]%
  33. %
  34. \>[2]\AgdaFunction{b}\AgdaSpace{}%
  35. \AgdaSymbol{:}\AgdaSpace{}%
  36. \AgdaDatatype{Bool}\<%
  37. \\
  38. %
  39. \>[2]\AgdaFunction{b}\AgdaSpace{}%
  40. \AgdaSymbol{=}\AgdaSpace{}%
  41. \AgdaInductiveConstructor{false}\<%
  42. \\
  43. \>[0]\<%
  44. \end{code}
  45. c : Bool
  46. c = broccoli
  47. \end{document}