genericIndex package:ghc-internal

The genericIndex function is an overloaded version of !!, which accepts any Integral value as the index.