LexiFi / ocaml-vdom

Elm architecture and (V)DOM for OCaml
MIT License
197 stars 13 forks source link

Make the vdom type covariant in the 'msg parameter #24

Closed copy closed 6 years ago

copy commented 6 years ago

This allows the relaxed value restriction to kick in, for example when writing:

let hr = elt "hr" []

Which is now given the type 'a vdom (previously it was given a weakly polymorphic type).

alainfrisch commented 6 years ago

This makes a lot of sense, thanks!