Haskell: Maximum/minimum function

haskell

Solution

Yes, it's called `maxBound`.

There is also `minBound`. They are both part of the `Bounded` type class.

Problem

Is there a function in Haskell like say: ``` max_of_type :: (Num a) => a ``` So: ``` max_of_type :: Int == 2 ^ 31 - 1 // for example, implementation dependent ```

Original source