Merge pull request #420 from eamelink/comment-docs
Describe comments in syntax docs
commitebea00c690811864be3084a3323b55d73a40257f
authorPhil Freeman <paf31@cantab.net>
dateWed 21 May 2014, 14:23 (12 years ago)
parentbb83e53c83c62f
docs/source/syntax.rst+14
@@ -250,3 +250,17 @@ The ``where`` keyword can also be used to introduce local declarations `at the e
250250 go acc 1 = acc
251251 go acc n = go (acc * n) (n - 1)
252252
253+Comments
254+--------
255+
256+A single line comment starts with ``--``::
257+
258+ -- This is a comment
259+
260+Multi-line comments are enclosed in ``{-`` and ``-}``. These can be nested::
261+
262+ {- Comment {- nested comment -} continued comment -}
263+
264+
265+
266+