Commit 2495138b authored by Thomas van Noort's avatar Thomas van Noort

Included an example on how to format comments (watch the spaces before the *'s)

git-svn-id: https://svn.cs.ru.nl/repos/clean-platform/trunk@8 2afc29ad-3112-4e41-907a-9359c7e6e986
parent 815f5110
...@@ -29,8 +29,15 @@ there are two rules which make your functions easier to use and somewhat more cl ...@@ -29,8 +29,15 @@ there are two rules which make your functions easier to use and somewhat more cl
== Comments == == Comments ==
A concise description of the purpose of a function and the meaning of its input and output A concise description of the purpose of a function and the meaning of its input and output
parameters should be present in the .dcl file for all exported functions. parameters should be present in the .dcl file for all exported functions. Comments are enclosed
as follows:
== Whitespace == /**
Whitespace may be used to format functions. When tabs are used for alignment, they are considered * This function is the identity
to be four spaces wide. */
id :: a -> a
id x = x
== Layout ==
Whitespace and new lines can be used to format code nicely. When tabs are used for alignment, they are
considered to be fixed to four spaces.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment