Reject ranges that start beyond last item
This commit is contained in:
+1
-1
@@ -49,4 +49,4 @@ offset :: NonnegRange -> Int
|
||||
offset range =
|
||||
case rangeLower range
|
||||
of BoundaryBelow from -> from
|
||||
_ -> 0 -- should never happen
|
||||
_ -> error "range without lower bound" -- should never happen
|
||||
|
||||
Reference in New Issue
Block a user