Bug in toIntegral function of Data.Bits documentation
The function toIntegral
sketched in the documentation of Data.Bits does not do what is intended.
The guard toInteger x == y
always evaluates to True
(as y = toInteger x
).
The function toIntegral
sketched in the documentation of Data.Bits does not do what is intended.
The guard toInteger x == y
always evaluates to True
(as y = toInteger x
).