You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For consistency with Integer, maybe [0, maxBound :: Int]?
I don't want to push this in a specific direction.
The alternative would be to deprecate the instance for Integer in favor of the UniformRange instance.
Activity
lehins commentedon Aug 21, 2026
There used to be a ticket like that, which was closed with a comment: #44 (comment)
I personally don't mind adding an instance, but what should be the range when
randomis called?[0, maxBound :: Int64]for consistency with Integer[0, maxBound :: Word64]None of these are correct, but in favor of consistently ugly behavior, second option seems most reasonable.
andreasabel commentedon Aug 21, 2026
For consistency with
Integer, maybe[0, maxBound :: Int]?I don't want to push this in a specific direction.
The alternative would be to deprecate the instance for
Integerin favor of theUniformRangeinstance.