It would be nice if `Data.Vector.Mutable` (and variants) had a safe read option (or perhaps read with default) of the form (name is irrelevant to me) ```haskell safeRead :: PrimMonad m => MVector (PrimState m) a -> Int -> m (Maybe a) ```
Activity
Boarders commentedon Dec 11, 2020
It is worth noting that
massivoffers such an interface: https://hackage.haskell.org/package/massiv-0.5.8.0/docs/Data-Massiv-Array-Mutable.html#v:readAdd safeRead to mutable vector
Add safeRead to mutable vector
Add readMaybe to API for mutable vectors
Add readMaybe to API for mutable vectors
Add readMaybe to API for mutable vectors