Issue2123.agda 460 B

123456789101112131415161718192021222324252627282930
  1. module _ where
  2. open import Agda.Builtin.Nat
  3. open import Agda.Builtin.String
  4. open import Common.IO
  5. open import Common.Unit
  6. data ⊥ : Set where
  7. record Pair : Set where
  8. constructor _,_
  9. field fst snd : String
  10. open Pair
  11. record ERing : Set where
  12. constructor ering
  13. field divRem : (⊥ → ⊥) → Pair
  14. open ERing
  15. eRing : ERing
  16. eRing = ering λ _ → "fst" , "snd"
  17. test : String
  18. test = snd (divRem eRing (λ ()))
  19. main : IO Unit
  20. main = putStrLn test