Irrelevant.agda 303 B

12345678910111213141516171819202122232425
  1. module Irrelevant where
  2. open import Common.IO
  3. open import Common.Nat
  4. open import Common.Unit
  5. A : Set
  6. A = Nat
  7. record R : Set where
  8. id : A → A
  9. id x = x
  10. postulate r : R
  11. id2 : .A → A → A
  12. id2 x y = y
  13. open R
  14. main : IO Unit
  15. main = printNat (id2 10 20) ,,
  16. printNat (id r 30) ,,
  17. return unit