I’ve been looking for a package that integrates Elm (http://elm-lang.org/) with Meteor, but haven’t found it. Elm is a (simplified) Haskellish language that compiles to JavaScript.
Elm and the Elm architecture is a clean implementation of reactive functional programming for the frontend. It’s the logical consequence of the mess that is the React/Flux/Reflux/Redux/Whatever architecture in JS today. Boy am I sick of it. We are truly lost in the bazar.
Could Elm be our saviour? And is at at all viable to integrate Elm with Meteor? Does anyone know of packages or ongoing projects that attempts this?
You can use Elm in Meteor by integrating webpack into Meteor. Then you can utilize the Elm loader to build elm files. An alternative would be to just manually build Elm files into the meteor project and let Meteor package up the compiled JS:
That’s going to be the easiest way. You could also build a package to compile but my thoughts are that it’s not worth it just to have everything in one folder. It’s best to thing of Elm as it’s own separate thing anyhow IMHO.
Thanks for sharing. Would be curious to hear if anyone has had success using Elm with Meteor (instead of React) using one of the above approaches or any other. Am interested in giving it a try.