[{"name":"Install.ClauseInCase","comment":" Add a clause to a case expression in a specified function\nin a specified module. For example, if you put the code below in your\n`ReviewConfig.elm` file, running `elm-review` will add the clause\n`ResetCounter` to the `updateFromFrontend` function in the `Backend` module.\n\n    -- code for ReviewConfig.elm:\n    Install.ClauseInCase.makeRule\n        \"Backend\"\n        \"updateFromFrontend\"\n        \"ResetCounter\"\n        \"( { model | counter = 0 }, broadcast (CounterNewValue 0 clientId) )\"\n\n    Thus we will have\n\n    updateFromFrontend : SessionId -> ClientId -> ToBackend -> Model -> ( Model, Cmd BackendMsg )\n    updateFromFrontend sessionId clientId msg model =\n        case msg of\n            CounterIncremented ->\n            ...\n\n            ResetCounter ->\n                ( { model | counter = 0 }, broadcast (CounterNewValue 0 clientId) )\n\n@docs makeRule\n\n","unions":[],"aliases":[],"values":[{"name":"makeRule","comment":" Create a rule that adds a clause to a case expression in a specified function\n","type":"String.String -> String.String -> String.String -> String.String -> Review.Rule.Rule"}],"binops":[]},{"name":"Install.FieldInTypeAlias","comment":" Add a field to specified type alias\nin a specified module. For example, if you put the code below in your\n`ReviewConfig.elm` file, running `elm-review` will add the field\n`quot: String` to the type alias `FrontendModel` in the `Types` module.\n\n    -- code for ReviewConfig.elm:\n    Install.FieldInTypeAlias.makeRule \"Types\" \"FrontendModel\" \"quot: String\"\n\nThus we will have\n\n    type alias FrontendModel =\n        { counter : Int\n        , clientId : String\n        , quot : String\n        }\n\n@docs makeRule\n\n","unions":[],"aliases":[],"values":[{"name":"makeRule","comment":" Create a rule that adds a field to a type alias in a specified module.\n","type":"String.String -> String.String -> String.String -> Review.Rule.Rule"}],"binops":[]},{"name":"Install.Initializer","comment":" Add a field to the body of a function like `init` in which the\nthe return value is of the form `( Model, Cmd msg )`. As in\nthe `ReviewConfig` item below, you specify the module name, the function\nname, as well as the field name and value to be added to the function:\n\n    -- code for ReviewConfig.elm:\n    Install.Initializer.makeRule \"Backend\" \"init\" \"message\" \"\\\"hohoho!\\\"\"\n\nThus we will have\n\n     init : ( Model, Cmd BackendMsg )\n     init =\n         ( { counter = 0\n           , message = \"hohoho!\"\n           }\n         , Cmd.none\n         )\n\n@docs makeRule\n\n","unions":[],"aliases":[],"values":[{"name":"makeRule","comment":" Create a rule that adds a field to the body of a function like\n`init` in which the return value is of the form `( Model, Cmd msg )`.\nAs in the `ReviewConfig` item below, you specify\nthe module name, the function name, as well as the\nfield name and value to be added to the function:\n\n    Install.Initializer.makeRule \"Backend\" \"init\" \"message\" \"\\\"hohoho!\\\"\"}\n\n","type":"String.String -> String.String -> String.String -> String.String -> Review.Rule.Rule"}],"binops":[]},{"name":"Install.TypeVariant","comment":" Add a variant to a given type in a given module. As in\nthe `ReviewConfig` item below, you specify the module name, the type\nname, and the type of the new variant.\n\n    Install.TypeVariant.makeRule \"Types\" \"ToBackend\" \"ResetCounter\"\n\nThen you will have\n\n     type ToBackend\n         = CounterIncremented\n         | CounterDecremented\n         | ResetCounter\n\nwhere the last variant is the one added.\n\n@docs makeRule\n\n","unions":[],"aliases":[],"values":[{"name":"makeRule","comment":" Create a rule that adds a variant to a type in a specified module:\n\n    Install.TypeVariant.makeRule \"Types\" \"ToBackend\" \"ResetCounter\"\n\n","type":"String.String -> String.String -> String.String -> Review.Rule.Rule"}],"binops":[]}]