isInfinite package:ghc-lib-parser

True if the argument is an IEEE infinity or negative infinity