ghcjs / ghcjs-vdom

bindings for virtual-dom
MIT License
33 stars 16 forks source link

Event_ and its subclasses is not exported #12

Closed hanshoglund closed 8 years ago

hanshoglund commented 8 years ago

The fact that Event and its subclasses (`MouseEventet al) are not exported makes the event API rather difficult to understand from looking at the documentation, as there is no indication (other than common sense) thatMouseEventis actually an instance ofMouseEvent_`. The naming convention doesn't help either.

I would propose that the classes are renamed HasEvent, HasMouseEvent etc, and that the classes are exported to allow Haddock to generate links to them (the actual methods should still be hidden for encapsulation purposes).