PreludeInt.agda 334 B

123456789101112131415161718192021222324
  1. module PreludeInt where
  2. open import AlonzoPrelude
  3. import RTP
  4. int : Nat -> Int
  5. int = RTP.primNatToInt
  6. _+_ : Int -> Int -> Int
  7. _+_ = RTP.primIntAdd
  8. _-_ : Int -> Int -> Int
  9. _-_ = RTP.primIntSub
  10. _*_ : Int -> Int -> Int
  11. _*_ = RTP.primIntMul
  12. div : Int -> Int -> Int
  13. div = RTP.primIntDiv
  14. mod : Int -> Int -> Int
  15. mod = RTP.primIntMod