elm-codegen icon indicating copy to clipboard operation
elm-codegen copied to clipboard

Expose declarations in `import` statements

Open adauguet opened this issue 3 years ago • 0 comments

Is it possible to expose some declarations in import statements?

Before:

import Html
import Html.Attributes

Html.div
    [ Html.Attributes.class "hello" ]
    [ Html.text "Hello world!" ]

After:

import Html exposing (div, text)
import Html.Attributes exposing (class)

div
    [ class "hello" ]
    [ text "Hello world!" ]

adauguet avatar Sep 20 '22 19:09 adauguet