
13 Mar
2012
13 Mar
'12
5:36 p.m.
The problem seems to be that numeric literals are polymorphic. With your code, this works: *Main> let x = 8 :: Int *Main> add x x x :: Int 24 *Main> add x x :: Int 16