Behavior of fromInteger on out-of-range arguments

Tom Pledger Tom.Pledger@peace.com
Wed, 27 Feb 2002 09:46:42 +1300


David Feuer writes:
 :
 | Question:  Is there any standard way in Haskell of determining the
 | maximal and minimal Int values?

Yes, instance Bounded Int, which means you can use

    maxBound :: Int

and

    minBound :: Int