jxxcarlson/elm-review-codeinstaller/12.0.5

NOTE: the latest version is 13.0.0

Install.Subscription

Use this rule to add to the list of subscriptions.

makeRule : String -> List String -> Rule

Suppose that you have the following code in your Backend.elm file:

subscriptions =
    Sub.batch [ foo, bar ]

and that you want to add baz to the list. To do this, say

Install.Subscription.makeRule "Backend" [ "baz" ]

The result is

subscriptions =
    Sub.batch [ foo, bar, baz ]