With typespecs and use of sum types, how close can you make liveview look like elm?

with typespecs and use of sum types, how close can you make liveview look like elm?

You can integrate LiveView into Elm with projects like LiveJson