Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class Unsigned a where Source #
type UnsignedOf a Source #
unsigned :: a -> UnsignedOf a Source #
Cast the value to a larger size.
This is safer to use than fromIntegral
.
Instances
Unsigned Int8 Source # | |
Defined in HaskellWorks.Data.Int.Unsigned type UnsignedOf Int8 :: Type Source # | |
Unsigned Int16 Source # | |
Defined in HaskellWorks.Data.Int.Unsigned type UnsignedOf Int16 :: Type Source # | |
Unsigned Int32 Source # | |
Defined in HaskellWorks.Data.Int.Unsigned type UnsignedOf Int32 :: Type Source # | |
Unsigned Int64 Source # | |
Defined in HaskellWorks.Data.Int.Unsigned type UnsignedOf Int64 :: Type Source # |