PatternSynonyms.lagda 320 B

1234567891011121314151617181920
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \begin{code}
  5. data Nat : Set where
  6. zero : Nat
  7. suc : Nat → Nat
  8. module PatternSyns where
  9. pattern two = suc (suc zero)
  10. pattern three = suc two
  11. open PatternSyns using (two) renaming (three to three′)
  12. data Bot : Set where
  13. \end{code}
  14. \end{document}