Well comparing Elm to OCaml or Haskell does not make too much sense. OCaml is a 20 years old multi-paradigm, general purpose language that is extremely useful for so many things (writing compilers for example) while Elm is a domain-specific programming language to be used in the browser. Apples and oranges.