You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importHtmlexposing (..)
-- ^^view:Htmlmsgview = div [][ span [][ text "hello"]]
We could have the rule provide an automatic fix that would replace (..) by the list of all implicit functions and types for that module.
importHtmlexposing (Html, div, span, text)
view:Htmlmsgview = div [][ span [][ text "hello"]]
Ideally, the formatting would already look like something elm-format would produce, meaning types first in alphabetical order, then functions/values in alphabetical order.
Detecting what module the function/type comes from can be done using the module name lookup table.
The trickiest part here would likely be detecting from which custom type a constructor comes from, so we need when to do exposing (A(..)) instead of exposing (A).
The text was updated successfully, but these errors were encountered:
The following import would be reported
We could have the rule provide an automatic fix that would replace (..) by the list of all implicit functions and types for that module.
Ideally, the formatting would already look like something elm-format would produce, meaning types first in alphabetical order, then functions/values in alphabetical order.
Detecting what module the function/type comes from can be done using the module name lookup table.
The trickiest part here would likely be detecting from which custom type a constructor comes from, so we need when to do
exposing (A(..))
instead ofexposing (A)
.The text was updated successfully, but these errors were encountered: