So ELM would be able to compile to Haskell?
David C.

I don’t think so: Elm’s compiler is written in Haskell, but it’s written to compile Elm syntax into Javascript. Was just an example of how they’re not at odds, but just have different targets/purposes. Elm’s syntax borrows a lot from Haskell but it’s purpose is much more focused.

Haskell is generally not targeting compilation into front-end javascript: there are a few projects out there that have some limited support for that, but there’s probably not as much demand for that to work in general (not even sure it could in general).