@@ -27,23 +27,15 @@ namespace Builtins
27 ||| UniqueTypes.
27 ||| UniqueTypes.
28 ||| @A the type of the left elements in the pair
28 ||| @A the type of the left elements in the pair
29 ||| @B the type of the left elements in the pair
29 ||| @B the type of the left elements in the pair
30− data UniquePair : (A : AnyType) -> (B : AnyType) -> AnyType where
30+ data UPair : (A : AnyType) -> (B : AnyType) -> AnyType where
31 ||| A pair of elements
31 ||| A pair of elements
32 ||| @a the left element of the pair
32 ||| @a the left element of the pair
33 ||| @b the right element of the pair
33 ||| @b the right element of the pair
34− MkUniquePair : {A, B : AnyType} -> (a : A) -> (b : B) -> UniquePair A B
34+ MkUPair : {A, B : AnyType} -> (a : A) -> (b : B) -> UPair A B
36 -- Usage hints for erasure analysis
36 -- Usage hints for erasure analysis
37− %used MkUniquePair a
37+ %used MkUPair a
38− %used MkUniquePair b
38+ %used MkUPair b
40− UPair : (A : AnyType) -> (B : AnyType) -> AnyType
41− UPair a b = UniquePair a b
42− %deprecate UPair "This name is being deprecated in favour of `UniquePair`"
44− MkUPair : {A, B : AnyType} -> (a : A) -> (b : B) -> UniquePair A B
45− MkUPair a b = MkUniquePair a b
46− %deprecate MkUPair "This name is being deprecated in favour of `MkUniquePair`"
48 ||| Dependent pairs aid in the construction of dependent types by
40 ||| Dependent pairs aid in the construction of dependent types by
49 ||| providing evidence that some value resides in the type.
41 ||| providing evidence that some value resides in the type.