As a solution to the issue of elm-reactor clobbering Elm imports, can we wrap the output of elm-make SideBar.elm and only expose Elm.SideBar? I've manually done this to my debug.js and it works (but I'm still getting up to speed on things)
var Elm = Elm || { Native: {} };
Elm.SideBar = (function () {
<-- elm-make frontend/SideBar.elm -->
return Elm.SideBar;
}());
<-- cat elm-implementation.js -->
Still learning Haskell, but the changes will be something like this in Setup.hs
As a solution to the issue of elm-reactor clobbering Elm imports, can we wrap the output of
elm-make SideBar.elm
and only exposeElm.SideBar
? I've manually done this to mydebug.js
and it works (but I'm still getting up to speed on things)Still learning Haskell, but the changes will be something like this in
Setup.hs