Add a field to specified type alias
in a specified module. For example, if you put the code below in your
ReviewConfig.elm file, running elm-review will add the field
quot: String to the type alias FrontendModel in the Types module.
-- code for ReviewConfig.elm:
Install.FieldInTypeAlias.makeRule "Types" "FrontendModel" "quot: String"Thus we will have
type alias FrontendModel =
{ counter : Int
, clientId : String
, quot : String
}
Create a rule that adds a field to a type alias in a specified module.