on master help sign in
Missed a bit in Sigma
commitab333a7b2e4f20870fb85c28212d9ec4407169a6 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateMon 4 May 2015, 12:57 (11 years ago) parent4fda5e8
1 file changed+1−1
docs/tutorial/typesfuns.rst+1−1
docs/tutorial/typesfuns.rst+1−1
@@ -788,7 +788,7 @@ as “sigma types”:
788788.. code-block:: idris
789789
790790 data Sigma : (a : Type) -> (P : a -> Type) -> Type where
791− MkSigma : {P : A -> Type} -> (x : a) -> P x -> Sigma a P
791+ MkSigma : {P : a -> Type} -> (x : a) -> P x -> Sigma a P
792792
793793Again, there is syntactic sugar for this. ``(a : A ** P)`` is the type
794794of a pair of A and P, where the name ``a`` can occur inside ``P``.