## Problem `WFA.hs` L383: uses `Array.!` with a documented but unenforced precondition. Call-site `assert`s are compiled out with `-O`. ## Proposed fix Return `Maybe` or `Either` so callers can't forget the bounds check. ## References - [ouroboros-consensus PR #1975 review r3131995056](https://github.com/IntersectMBO/ouroboros-consensus/pull/1975#discussion_r3131995056)
Problem
WFA.hsL383: usesArray.!with a documented but unenforced precondition.Call-site
asserts are compiled out with-O.Proposed fix
Return
MaybeorEitherso callers can't forget the bounds check.References