Skip to content

Commit

Permalink
added type alias documentation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarin Heffes committed Oct 16, 2024
1 parent 314ff0b commit fde68b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/coalton-documentation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ that contains a filling of various sweet or savoury ingredients."
(Meat String) "A meat pie with the type of meat."))
```

### `define-alias`

`define-alias` allows for the same docstring style as `define`.

```lisp
(coalton-toplevel
(define-alias Index Integer
"This is an alias for a discrete numeric type: INTEGER"))
### `define-class`
`define-class` allows for documentation both on the main form and in each method.
Expand Down

0 comments on commit fde68b5

Please sign in to comment.