------------------------------------------------------------------------
-- The Agda standard library
--
-- Integer Literals
------------------------------------------------------------------------

{-# OPTIONS --cubical-compatible --safe #-}

module Data.Integer.Literals where

open import Agda.Builtin.FromNat
open import Agda.Builtin.FromNeg
open import Data.Unit using ()
open import Data.Integer.Base using (; -_; +_)

number : Number 
number = record
  { Constraint = λ _  
  ; fromNat    = λ n  + n
  }

negative : Negative 
negative = record
  { Constraint = λ _  
  ; fromNeg    = λ n  - (+ n)
  }