List of functions and data types in Prelude
Prelude::NegativeLengthString(Int)
Usage
If substr is called in a way that would require the generation of a string with negative length (either because the length asked for is negative, or because the starting index is after the end of the string), this Exception will be thrown.
Related