labordynamicsinstitute / metajelo-ui

UI for metajelo
https://labordynamicsinstitute.github.io/metajelo-ui
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Change global state to use Reader #93

Open bbarker opened 3 years ago

bbarker commented 3 years ago

Instead of using options in the view-model, which is cumbersome (as is currently done for description toggle).

With Concur switching to a reader monad wrapper should be transparent in most places. For example, ‘wrapInDiv m :: div [] m’ would work with plain ‘Widget a’ as well as with ‘ReaderT r Widget a’.