Add import statements to a given module.
For example, to add import Foo.Bar to the Frontend module, you can use the following configuration:
Install.Import.init "Frontend"
[ { moduleToImport = "Foo.Bar", alias_ = Nothing, exposedValues = Nothing } ]
|> Install.Import.makeRuleTo add the statement import Foo.Bar as FB exposing (a, b, c) to the Frontend module, do this:
Install.Import.init "Frontend" [ { moduleToImport = "Foo.Bar", alias_ = Just "FB", exposedValues = Just [ "a", "b", "c" ] } ]
|> Install.Import.makeRuleThere is a short cut for importing modules with no alias or exposed values:
Install.Import.initSimple "Frontend" [ "Foo.Bar", "Baz.Qux" ]
|> Install.Import.makeRuleInitialize the configuration for the rule.
Create a rule that adds a list of imports for given modules in a given module. See above for examples.
Initialize the configuration for the rule.