ivanmorgillo
04/30/2020, 6:24 PMfun areRemindersEnabled(): IO<Unit, Boolean> =
storage.load<Boolean>(key)
.mapError { Unit }
.handleError { false }
let's go with this:
I load, thing blows up with NoValueFoundForKey I convert it to Unit, then recover from the error placing false in A.
how does it sound?