Verified Commit 703c14a4 authored by Camil Staps's avatar Camil Staps 🙂

Update documentation about single-line documentation

parent d2332fe0
Pipeline #31151 passed with stage
in 3 minutes and 6 seconds
......@@ -23,8 +23,7 @@ map :: (a -> b) [a] -> [b]
For short documentation items, doclines, starting with `//*` can be used. When
documenting a constructor, or record field, they should be placed *after* the
item they document. Doclines are only supported for constructors and record
fields. For example:
item they document. For example:
......@@ -37,6 +36,23 @@ fields. For example:
To add several lines of documentation to a constructor or record field, several
doclines can be used:
:: MyType
= MyConstructor args // ...
//* This constructor may require some more explanation,
//* which is added on several lines.
Doclines can also be added *above* a function, type, or class definition:
//* The identity function.
id :: .a -> .a
## Markup in documentation
Some simple Markdown-inspired markup is allowed in documentation:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment