nash-can 0.14.0

Canonicalize a nash source tree, resolving symbols, re-ordering definitions, and preparing a module for type inference.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
source: crates/nash-can/src/module.rs
description: "Code:\n\nmodule Main exposing (Foo, Foo)\n\ntype alias Foo = Int\n"
info: diagnostic
---
nash::names::export_duplicate

  × Duplicate export `Foo`.
   ╭─[src/Main.nash:1:28]
 1 │ module Main exposing (Foo, Foo)
   ·                       ─┬─  ─┬─
   ·                        │    ╰── duplicate export
   ·                        ╰── first export
 2 │ 
   ╰────
  help: Remove the duplicate export.