What do people think about making this a warning? It's redundant and for some reason our Agentic friends love doing it.
import pf.Elem exposing [Elem]
Would import pf.Elem exposing [foo, bar] also expose Elem implicitly?
Yes I think so
seems reasonable to me! :thumbs_up:
also could have the formatter autofix it
maybe let's just do that and not give a warning
ehh both is probably better actually, that way the warning gives an actual explanation
The formatter doesn't have type information so it would have to be a heuristic "same name" thing I guess
Made an issue for this https://github.com/roc-lang/roc/issues/11270
I think same name is deterministic, right? :thinking:
like I don't think type information would matter even if it had access to it :smile:
Can I expose a nested type with the same name as the parent?
I guess that should not be permitted
Elem.Elem.Elem
oh hm I guess you can
I mean it should be permitted, it's just silly
so is the status quo of exposing [Elem] actually a bug?
like should it be an error bc that's like trying to expose Elem.Elem, which doesn't exist?
Last updated: Sep 24 2026 at 15:59 UTC