Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
HaskellWorks.Data.Int.Narrow
Documentation
class Narrow a b where Source #
Methods
Cast the value to a smaller size.
If the value does not fit in the smaller size, data will be lost.
This gives a better indication of intent than fromIntegral
.