mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 05:24:15 +00:00
I previously implemented the syntax in "Proposal: Module and Package Changes" [1]:
```
import [map, map2] from JsonDecode as JD
```
However, we decided [2] to use the one that appears in "Proposal: Module Params" [3]:
```
import JsonDecode as JD exposing [map, map2]
```
The new implementation also now supports comments and newlines between all the tokens.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
[2]
|
||
|---|---|---|
| .. | ||
| snapshots | ||
| test_fmt.rs | ||
| test_snapshots.rs | ||