[Haskell-beginners] Re: Integer by default.

Ertugrul Soeylemez es at ertes.de
Wed Jun 23 09:52:32 EDT 2010

Hello Lyndon,

it seems to me that Integer /is/ the default.  Probably you're unifying
with some Int, for example when using functions like 'take' or 'length':

  length :: [a] -> Int
  take :: Int -> [a] -> [a]


Lyndon Maydwell <maydwell at gmail.com> wrote:

> Hi beginners.
> Is there a way to get the prelude functions to use Integer by default
> rather than Int?
> I often have issues with Ints silently overflowing silently, but don't
> often have speed issues.
> Somehow I don't think that this is possible, but... Maybe?

nightmare = unsafePerformIO (getWrongWife >>= sex)

More information about the Beginners mailing list