tomsmalley / semantic-reflex

🔧 Semantic UI for Haskell and Reflex-DOM
https://tomsmalley.github.io/semantic-reflex/
BSD 3-Clause Clear License
38 stars 13 forks source link

Remove Prerender constraint from UI type alias #42

Open mightybyte opened 5 years ago

mightybyte commented 5 years ago

A lot of the semantic-reflex widgets don't need the Prerender constraint, but they use the UI type alias so they get it. The result is that the user can't use these widgets in many places completely unnecessarily.

tomsmalley commented 5 years ago

The Prerender constraint is necessary due to transitions needing MonadIO for delaying events.

What are the situations that prevent you from making use of the prerender constraint?

tomsmalley commented 5 years ago

It would be nice to be able to drop that constraint where transitions aren't being used, though.

mightybyte commented 5 years ago

Yes. I don't object to the constraint being there where needed. I just think it shouldn't be there across the board.