Code to go along with my Steemit article
Elm HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
csp.elm
csp2.elm
elm-package.json
index.html

README.md

Examples to go along with my Steemit article, Elm: Commands and Subscriptions and Ports. Oh My!.

You can try csp.elm as follows:

cd .../elm-csp
elm reactor

Then aim your web browser at:

http://localhost:8000

And click on csp.elm.

You can NOT usefully run cps2.elm from reactor. You must compile it into JavaScript:

cd .../elm-csp
elm make csp2.elm --output csp2.js

And then open index.html in your browser.