jxxcarlson/elm-review-codeinstaller/6.1.0

NOTE: the latest version is 13.0.0

Install.Import

Add import statements to a given module.

Examples:

```
Install.Import.init "Frontend" "Foo.Bar"
   |> Install.Import.makeRule
```


This adds `import Foo.Bar` to the `Frontend` module.




 ```
Install.Import.init "Frontend" "Foo.Bar"
        |> Install.Import.withAlias "FB"
        |> Install.Import.withExposedValues [ "a", "b", "c" ]
        |> Install.Import.makeRule
```


This adds `import Foo.Bar as FB exposing (a, b, c)` to the `Frontend` module.


```
init : String -> String -> Config

Initialize the configuration for the rule.

makeRule : Config -> Rule

Create a rule that adds an import for a given module in a given module. See above for examples.

withAlias : String -> Config -> Config

Add an alias to the imported module.

withExposedValues : List String -> Config -> Config

Add an exposing list to the imported module.