Commit a7c73aa
committed
Remove attempted re-export of
It is currently possible to attempt to re-export both a class and a type
of the same name from different modules.
It is not currently possible to define both a class and a type of the
same name in the same module.
What actually happens is that the order of exports defines which things
are really exported.
In the case of `Type.Row`, the re-export of `Prim.Row` comes first,
and the re-export of `Prim.RowList` comes after it.
This ordering means that the `Prim.Row.Cons` class is not re-exported,
but the `Prim.RowList.Cons` type is re-exported.
From the perspective of anyone importing `Type.Row`,
we've always only re-exported `Prim.RowList.Cons`.
We make that explicit by removing `Prim.Row.Cons` from the export list.Prim.Row.Cons
1 parent 1e4a623 commit a7c73aa
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments