23 Jun
2010
23 Jun
'10
1:52 p.m.
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] Greets, Ertugrul Lyndon Maydwell <maydwell@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) http://blog.ertes.de/