Inline.quick.tex 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. Assume that we are given a type
  5. %
  6. \begin{code}[inline=False,hide=true]%
  7. %
  8. \>[2]\AgdaKeyword{module}\AgdaSpace{}%
  9. \AgdaModule{\AgdaUnderscore{}}\AgdaSpace{}%
  10. \AgdaSymbol{(}\<%
  11. \end{code}
  12. \begin{code}[hide,inline,hide=false]%
  13. \>[2][@{}l@{\AgdaIndent{1}}]%
  14. \>[4]\AgdaBound{A}\AgdaSpace{}%
  15. \AgdaSymbol{:}\AgdaSpace{}%
  16. \AgdaPrimitive{Set}\<%
  17. \end{code}
  18. \begin{code}[hide=false,hide=True]%
  19. %
  20. \>[4]\AgdaSymbol{)}\AgdaSpace{}%
  21. \AgdaSymbol{(}\<%
  22. \end{code}
  23. %
  24. ,
  25. and that a function
  26. %
  27. \begin{code}[inline*]%
  28. %
  29. \>[4]\AgdaBound{F}\AgdaSpace{}%
  30. \AgdaSymbol{:}\AgdaSpace{}%
  31. \AgdaPrimitive{Set}\AgdaSpace{}%
  32. \AgdaSymbol{→}\AgdaSpace{}%
  33. \AgdaPrimitive{Set}\AgdaSpace{}%
  34. \AgdaSymbol{→}\AgdaSpace{}%
  35. \AgdaPrimitive{Set}\AgdaSpace{}%
  36. \AgdaSymbol{→}\AgdaSpace{}%
  37. \AgdaPrimitive{Set}\<%
  38. \end{code}
  39. \begin{code}[hide]%
  40. %
  41. \>[4]\AgdaSymbol{)}\AgdaSpace{}%
  42. \AgdaKeyword{where}\<%
  43. \end{code}
  44. %
  45. is also given.
  46. \end{document}