on master help sign in
Merge pull request #2736 from enolan/improve-syntax-guide
5a3e5dbEdwin Brady
docs/reference/syntax-guide.rst+4−1
@@ -112,7 +112,7 @@ Types
112
112
113In Idris, types are first class values. So a type declaration is the
113In Idris, types are first class values. So a type declaration is the
114same as just declaration of a variable whose type is ``Type``. In Idris,
114same as just declaration of a variable whose type is ``Type``. In Idris,
115−variables that denote a type must begin with a capital letter. Example:
115+variables that denote a type need not be capitalised. Example:
116
116
117.. code:: idris
117.. code:: idris
118
118
@@ -126,6 +126,9 @@ a more interesting example:
126 MyListType : Type
126 MyListType : Type
127 MyListType = List Int
127 MyListType = List Int
128
128
129+While capitalising types is not required, the rules for generating implicit
130+arguments mean it is often a good idea.
131+
129.. _syntax-data-types:
132.. _syntax-data-types:
130
133
131Data types
134Data types