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.
I didn't compare them in that sense. I only compared how easy it is to get started with.
They share some concepts, like being functional languages and having good type systems.
Elm definitely helped me understand many concepts in OCaml and Haskell. But to go beyond that, it's difficult.