@@ -864,8 +864,8 @@ as “sigma types”:
865.. code-block:: idris
865.. code-block:: idris
867− data Sigma : (a : Type) -> (P : a -> Type) -> Type where
867+ data DPair : (a : Type) -> (P : a -> Type) -> Type where
868− MkSigma : {P : a -> Type} -> (x : a) -> P x -> Sigma a P
868+ MkDPair : {P : a -> Type} -> (x : a) -> P x -> DPair a P
870Again, there is syntactic sugar for this. ``(a : A ** P)`` is the type
870Again, there is syntactic sugar for this. ``(a : A ** P)`` is the type
871of a pair of A and P, where the name ``a`` can occur inside ``P``.
871of a pair of A and P, where the name ``a`` can occur inside ``P``.
@@ -882,8 +882,8 @@ equivalent.
883.. code-block:: idris
883.. code-block:: idris
885− vec : Sigma Nat (\n => Vect n Int)
885+ vec : DPair Nat (\n => Vect n Int)
886− vec = MkSigma 2 [3, 4]
886+ vec = MkDPair 2 [3, 4]
888The type checker could of course infer the value of the first element
888The type checker could of course infer the value of the first element
889from the length of the vector. We can write an underscore ``_`` in
889from the length of the vector. We can write an underscore ``_`` in