on master help sign in
Merge pull request #3018 from mcgirr/master

Add where keyword to UList and BadList in the Uniqueness Types docume…

commitcbe41868f523eb91ec2016645605d9dfbe6fa693 authorNiklas Larsson <metaniklas@gmail.com> dateTue 8 Mar 2016, 01:31 (11 years ago) parentaa062fc9c5b561
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