[Haskell-cafe] Positive integers

Daniel McAllansmith dagda at xtra.co.nz
Thu Mar 23 19:03:11 EST 2006

Unless I've missed it, there is no typeclass for positive integers in GHC.
Is there any particular reason it doesn't exist?

Also, it seems Word would be a far better type in the likes of (!!), length, 
etc.  Is it just tradition that resulted in the use of Int?


More information about the Haskell-Cafe mailing list