New module header

Implements the new `module` header syntax as described in "module and package changes" [1]:

```
module [Request, Response, req]
```

The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.

[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
This commit is contained in:
Agus Zubiaga 2024-02-18 19:10:54 -03:00
parent 7754dd7ef7
commit 057a18573a
No known key found for this signature in database
92 changed files with 1445 additions and 1563 deletions

View file

@ -3621,7 +3621,7 @@ fn to_exposes_report<'a>(
"I was expecting a type name, value name or function name next, like",
)]),
alloc
.parser_suggestion("exposes [Animal, default, tame]")
.parser_suggestion("[Animal, default, tame]")
.indent(4),
]);
@ -3646,7 +3646,7 @@ fn to_exposes_report<'a>(
alloc.reflow(" keyword next, like"),
]),
alloc
.parser_suggestion("exposes [Animal, default, tame]")
.parser_suggestion("[Animal, default, tame]")
.indent(4),
]);