on master help sign in
Add where keyword to UList and BadList in the Uniqueness Types documentation.
commit9c5b5610d2bc850ad4720e9fb50636efc394a99c authormichaelmcgirr <michaelgordonmcgirr@gmail.com> dateFri 4 Mar 2016, 19:03 (11 years ago) parent36a3eda
1 file changed+2−2
docs/reference/uniqueness-types.rst+2−2
docs/reference/uniqueness-types.rst+2−2
@@ -34,7 +34,7 @@ declare the type of unique lists as follows:
3434
3535.. code-block:: idris
3636
37− data UList : Type -> UniqueType
37+ data UList : Type -> UniqueType where
3838 Nil : UList a
3939 (::) : a -> UList a -> UList a
4040
@@ -94,7 +94,7 @@ since it would embed a unique value in a possible non-unique value:
9494
9595.. code-block:: idris
9696
97− data BadList : UniqueType -> Type
97+ data BadList : UniqueType -> Type where
9898 Nil : {a : UniqueType} -> BadList a
9999 (::) : {a : UniqueType} -> a -> BadList a -> BadList a
100100