Issue2879-1.agda 410 B

123456789101112131415161718192021222324252627
  1. {-# OPTIONS --sized-types #-}
  2. open import Agda.Builtin.IO
  3. open import Agda.Builtin.Size
  4. open import Agda.Builtin.Unit
  5. data D (i : Size) : Set where
  6. {-# FOREIGN GHC
  7. data Empty i
  8. #-}
  9. {-# COMPILE GHC D = data Empty () #-}
  10. f : ∀ {i} → D i → D i
  11. f ()
  12. {-# COMPILE GHC f as f #-}
  13. postulate
  14. return : {A : Set} → A → IO A
  15. {-# COMPILE GHC return = \_ -> return #-}
  16. main : IO ⊤
  17. main = return _