Things I can only dream of: an -XRecordUpdateDo
that would let someone write:
section { do
lessons <- for (lessons section) $ \lesson -> do ...
sposition <- use sectionCounter
}
as sugar for
do
lessons' <- for (lessons section) $ \lesson -> do ...
sposition' <- use sectionCounter
pure section { lessons = lessons', sposition = sposition' }