Safe Haskell | None |
---|---|
Language | Haskell2010 |
Unsigned and signed words
Synopsis
- type family WordAtLeast (n :: Nat) where ...
- type family IntAtLeast (n :: Nat) where ...
- type family WordN (n :: Nat) where ...
- type family IntN (n :: Nat) where ...
- newtype CSize = CSize Word64
- data CUShort
- data CShort
- data CUInt
- data CInt
- data CULong
- data CLong
- module GHC.Word
- module GHC.Int
- data Word# :: TYPE WordRep
- data Int# :: TYPE IntRep
- plusWord# :: Word# -> Word# -> Word#
- minusWord# :: Word# -> Word# -> Word#
- (+#) :: Int# -> Int# -> Int#
- (-#) :: Int# -> Int# -> Int#
- (==#) :: Int# -> Int# -> Int#
- (>#) :: Int# -> Int# -> Int#
- (<#) :: Int# -> Int# -> Int#
- (>=#) :: Int# -> Int# -> Int#
- (<=#) :: Int# -> Int# -> Int#
- ltWord# :: Word# -> Word# -> Int#
- leWord# :: Word# -> Word# -> Int#
- gtWord# :: Word# -> Word# -> Int#
- geWord# :: Word# -> Word# -> Int#
- eqWord# :: Word# -> Word# -> Int#
- isTrue# :: Int# -> Bool
Documentation
type family WordAtLeast (n :: Nat) where ... Source #
Return a Word with at least n
bits
type family IntAtLeast (n :: Nat) where ... Source #
Return a Int with at least n
bits
Some C types
Haskell type representing the C size_t
type.
Instances
Haskell type representing the C unsigned short
type.
Instances
Haskell type representing the C short
type.
Instances
Haskell type representing the C unsigned int
type.
Instances
Haskell type representing the C int
type.
Instances
Haskell type representing the C unsigned long
type.
Instances
Haskell type representing the C long
type.
Instances
Unlifted
module GHC.Word
module GHC.Int
minusWord# :: Word# -> Word# -> Word# #
Alias for tagToEnum#
. Returns True if its parameter is 1# and False
if it is 0#.