That's just dynamic vs static typing though :p
But, I also tried to learn and use OCaml and Haskell in actual projects. They are nowhere near as friendly and approachable as Elm to beginners.
Elm definitely helped me understand many concepts in OCaml and Haskell. But to go beyond that, it's difficult.