Generally Haskell libraries make a point of making impossible states unrepresentable in the types. But I often see Int used where only a non-negative number makes sense. Why is Word not used in those cases?
We only just now got Numeric.Natural in base, too.
I think it is just historical accident. Int and Integer were in the haskell 98 prelude, which didn't get bogged down with lots of other fixed-size integer types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With