- MAIN


main =
    Html.program
        { init = init
        , view = view
        , update = update
        , subscriptions = subscriptions
        }
</code></pre>

<h2 id="subscriptions">Subscriptions</h2>

<p>Subscriptions is how Elm programs listen for external events, for example:</p>

<ul>
<li>Mouse movement</li>
<li>Window resizing</li>
<li>Time increments</li>
<li>Animation frames</li>
<li>Messages from JavaScript code</li>
</ul>

<p>The <code>subscriptions</code> function takes the program’s cu