| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Foreign.C.Types
Description
Synopsis
Representations of C types
Integral types
These types are are represented as newtypes of types in Data.Int and Data.Word, and are instances of
Eq, Ord, Num, Read, Show, Enum, Storable, Bounded, Real, Integral and Bits.
Haskell type representing the C char type.
Instances
| Bits CChar # | |
Defined in Foreign.C.Types Methods (.&.) :: CChar -> CChar -> CChar # (.|.) :: CChar -> CChar -> CChar # xor :: CChar -> CChar -> CChar # complement :: CChar -> CChar # shift :: CChar -> Int -> CChar # rotate :: CChar -> Int -> CChar # setBit :: CChar -> Int -> CChar # clearBit :: CChar -> Int -> CChar # complementBit :: CChar -> Int -> CChar # testBit :: CChar -> Int -> Bool # shiftL :: CChar -> Int -> CChar # shiftR :: CChar -> Int -> CChar # | |
| Bounded CChar # | |
| Enum CChar # | |
Defined in Foreign.C.Types | |
| Eq CChar # | |
| Ord CChar # | |
| Storable CChar # | |
| Integral CChar # | |
| Num CChar # | |
| Real CChar # | |
Defined in Foreign.C.Types Methods toRational :: CChar -> Rational # | |
| Read CChar # | |
| Show CChar # | |
Haskell type representing the C signed char type.
Instances
| Bits CSChar # | |
Defined in Foreign.C.Types Methods (.&.) :: CSChar -> CSChar -> CSChar # (.|.) :: CSChar -> CSChar -> CSChar # xor :: CSChar -> CSChar -> CSChar # complement :: CSChar -> CSChar # shift :: CSChar -> Int -> CSChar # rotate :: CSChar -> Int -> CSChar # setBit :: CSChar -> Int -> CSChar # clearBit :: CSChar -> Int -> CSChar # complementBit :: CSChar -> Int -> CSChar # testBit :: CSChar -> Int -> Bool # shiftL :: CSChar -> Int -> CSChar # shiftR :: CSChar -> Int -> CSChar # | |
| Bounded CSChar # | |
| Enum CSChar # | |
Defined in Foreign.C.Types | |
| Eq CSChar # | |
| Ord CSChar # | |
| Storable CSChar # | |
| Integral CSChar # | |
Defined in Foreign.C.Types | |
| Num CSChar # | |
| Real CSChar # | |
Defined in Foreign.C.Types Methods toRational :: CSChar -> Rational # | |
| Read CSChar # | |
| Show CSChar # | |
Haskell type representing the C unsigned char type.
Instances
| Bits CUChar # | |
Defined in Foreign.C.Types Methods (.&.) :: CUChar -> CUChar -> CUChar # (.|.) :: CUChar -> CUChar -> CUChar # xor :: CUChar -> CUChar -> CUChar # complement :: CUChar -> CUChar # shift :: CUChar -> Int -> CUChar # rotate :: CUChar -> Int -> CUChar # setBit :: CUChar -> Int -> CUChar # clearBit :: CUChar -> Int -> CUChar # complementBit :: CUChar -> Int -> CUChar # testBit :: CUChar -> Int -> Bool # shiftL :: CUChar -> Int -> CUChar # shiftR :: CUChar -> Int -> CUChar # | |
| Bounded CUChar # | |
| Enum CUChar # | |
Defined in Foreign.C.Types | |
| Eq CUChar # | |
| Ord CUChar # | |
| Storable CUChar # | |
| Integral CUChar # | |
Defined in Foreign.C.Types | |
| Num CUChar # | |
| Real CUChar # | |
Defined in Foreign.C.Types Methods toRational :: CUChar -> Rational # | |
| Read CUChar # | |
| Show CUChar # | |
Haskell type representing the C short type.
Instances
| Bits CShort # | |
Defined in Foreign.C.Types Methods (.&.) :: CShort -> CShort -> CShort # (.|.) :: CShort -> CShort -> CShort # xor :: CShort -> CShort -> CShort # complement :: CShort -> CShort # shift :: CShort -> Int -> CShort # rotate :: CShort -> Int -> CShort # setBit :: CShort -> Int -> CShort # clearBit :: CShort -> Int -> CShort # complementBit :: CShort -> Int -> CShort # testBit :: CShort -> Int -> Bool # shiftL :: CShort -> Int -> CShort # shiftR :: CShort -> Int -> CShort # | |
| Bounded CShort # | |
| Enum CShort # | |
Defined in Foreign.C.Types | |
| Eq CShort # | |
| Ord CShort # | |
| Storable CShort # | |
| Integral CShort # | |
Defined in Foreign.C.Types | |
| Num CShort # | |
| Real CShort # | |
Defined in Foreign.C.Types Methods toRational :: CShort -> Rational # | |
| Read CShort # | |
| Show CShort # | |
Haskell type representing the C unsigned short type.
Instances
| Bits CUShort # | |
Defined in Foreign.C.Types Methods (.&.) :: CUShort -> CUShort -> CUShort # (.|.) :: CUShort -> CUShort -> CUShort # xor :: CUShort -> CUShort -> CUShort # complement :: CUShort -> CUShort # shift :: CUShort -> Int -> CUShort # rotate :: CUShort -> Int -> CUShort # setBit :: CUShort -> Int -> CUShort # clearBit :: CUShort -> Int -> CUShort # complementBit :: CUShort -> Int -> CUShort # testBit :: CUShort -> Int -> Bool # shiftL :: CUShort -> Int -> CUShort # shiftR :: CUShort -> Int -> CUShort # | |
| Bounded CUShort # | |
| Enum CUShort # | |
| Eq CUShort # | |
| Ord CUShort # | |
| Storable CUShort # | |
| Integral CUShort # | |
Defined in Foreign.C.Types | |
| Num CUShort # | |
| Real CUShort # | |
Defined in Foreign.C.Types Methods toRational :: CUShort -> Rational # | |
| Read CUShort # | |
| Show CUShort # | |
Haskell type representing the C int type.
Instances
| Bits CInt # | |
Defined in Foreign.C.Types Methods (.&.) :: CInt -> CInt -> CInt # (.|.) :: CInt -> CInt -> CInt # complement :: CInt -> CInt # shift :: CInt -> Int -> CInt # rotate :: CInt -> Int -> CInt # setBit :: CInt -> Int -> CInt # clearBit :: CInt -> Int -> CInt # complementBit :: CInt -> Int -> CInt # testBit :: CInt -> Int -> Bool # shiftL :: CInt -> Int -> CInt # shiftR :: CInt -> Int -> CInt # | |
| Bounded CInt # | |
| Enum CInt # | |
| Eq CInt # | |
| Ord CInt # | |
| Storable CInt # | |
Defined in Foreign.C.Types | |
| Integral CInt # | |
| Num CInt # | |
| Real CInt # | |
Defined in Foreign.C.Types Methods toRational :: CInt -> Rational # | |
| Read CInt # | |
| Show CInt # | |
Haskell type representing the C unsigned int type.
Instances
| Bits CUInt # | |
Defined in Foreign.C.Types Methods (.&.) :: CUInt -> CUInt -> CUInt # (.|.) :: CUInt -> CUInt -> CUInt # xor :: CUInt -> CUInt -> CUInt # complement :: CUInt -> CUInt # shift :: CUInt -> Int -> CUInt # rotate :: CUInt -> Int -> CUInt # setBit :: CUInt -> Int -> CUInt # clearBit :: CUInt -> Int -> CUInt # complementBit :: CUInt -> Int -> CUInt # testBit :: CUInt -> Int -> Bool # shiftL :: CUInt -> Int -> CUInt # shiftR :: CUInt -> Int -> CUInt # | |
| Bounded CUInt # | |
| Enum CUInt # | |
Defined in Foreign.C.Types | |
| Eq CUInt # | |
| Ord CUInt # | |
| Storable CUInt # | |
| Integral CUInt # | |
| Num CUInt # | |
| Real CUInt # | |
Defined in Foreign.C.Types Methods toRational :: CUInt -> Rational # | |
| Read CUInt # | |
| Show CUInt # | |
Haskell type representing the C long type.
Instances
| Bits CLong # | |
Defined in Foreign.C.Types Methods (.&.) :: CLong -> CLong -> CLong # (.|.) :: CLong -> CLong -> CLong # xor :: CLong -> CLong -> CLong # complement :: CLong -> CLong # shift :: CLong -> Int -> CLong # rotate :: CLong -> Int -> CLong # setBit :: CLong -> Int -> CLong # clearBit :: CLong -> Int -> CLong # complementBit :: CLong -> Int -> CLong # testBit :: CLong -> Int -> Bool # shiftL :: CLong -> Int -> CLong # shiftR :: CLong -> Int -> CLong # | |
| Bounded CLong # | |
| Enum CLong # | |
Defined in Foreign.C.Types | |
| Eq CLong # | |
| Ord CLong # | |
| Storable CLong # | |
| Integral CLong # | |
| Num CLong # | |
| Real CLong # | |
Defined in Foreign.C.Types Methods toRational :: CLong -> Rational # | |
| Read CLong # | |
| Show CLong # | |
Haskell type representing the C unsigned long type.
Instances
| Bits CULong # | |
Defined in Foreign.C.Types Methods (.&.) :: CULong -> CULong -> CULong # (.|.) :: CULong -> CULong -> CULong # xor :: CULong -> CULong -> CULong # complement :: CULong -> CULong # shift :: CULong -> Int -> CULong # rotate :: CULong -> Int -> CULong # setBit :: CULong -> Int -> CULong # clearBit :: CULong -> Int -> CULong # complementBit :: CULong -> Int -> CULong # testBit :: CULong -> Int -> Bool # shiftL :: CULong -> Int -> CULong # shiftR :: CULong -> Int -> CULong # | |
| Bounded CULong # | |
| Enum CULong # | |
Defined in Foreign.C.Types | |
| Eq CULong # | |
| Ord CULong # | |
| Storable CULong # | |
| Integral CULong # | |
Defined in Foreign.C.Types | |
| Num CULong # | |
| Real CULong # | |
Defined in Foreign.C.Types Methods toRational :: CULong -> Rational # | |
| Read CULong # | |
| Show CULong # | |
Haskell type representing the C ptrdiff_t type.
Instances
| Bits CPtrdiff # | |
Defined in Foreign.C.Types Methods (.&.) :: CPtrdiff -> CPtrdiff -> CPtrdiff # (.|.) :: CPtrdiff -> CPtrdiff -> CPtrdiff # xor :: CPtrdiff -> CPtrdiff -> CPtrdiff # complement :: CPtrdiff -> CPtrdiff # shift :: CPtrdiff -> Int -> CPtrdiff # rotate :: CPtrdiff -> Int -> CPtrdiff # setBit :: CPtrdiff -> Int -> CPtrdiff # clearBit :: CPtrdiff -> Int -> CPtrdiff # complementBit :: CPtrdiff -> Int -> CPtrdiff # testBit :: CPtrdiff -> Int -> Bool # isSigned :: CPtrdiff -> Bool # shiftL :: CPtrdiff -> Int -> CPtrdiff # shiftR :: CPtrdiff -> Int -> CPtrdiff # | |
| Bounded CPtrdiff # | |
| Enum CPtrdiff # | |
| Eq CPtrdiff # | |
| Ord CPtrdiff # | |
Defined in Foreign.C.Types | |
| Storable CPtrdiff # | |
Defined in Foreign.C.Types | |
| Integral CPtrdiff # | |
Defined in Foreign.C.Types | |
| Num CPtrdiff # | |
| Real CPtrdiff # | |
Defined in Foreign.C.Types Methods toRational :: CPtrdiff -> Rational # | |
| Read CPtrdiff # | |
| Show CPtrdiff # | |
Haskell type representing the C size_t type.
Instances
| Bits CSize # | |
Defined in Foreign.C.Types Methods (.&.) :: CSize -> CSize -> CSize # (.|.) :: CSize -> CSize -> CSize # xor :: CSize -> CSize -> CSize # complement :: CSize -> CSize # shift :: CSize -> Int -> CSize # rotate :: CSize -> Int -> CSize # setBit :: CSize -> Int -> CSize # clearBit :: CSize -> Int -> CSize # complementBit :: CSize -> Int -> CSize # testBit :: CSize -> Int -> Bool # shiftL :: CSize -> Int -> CSize # shiftR :: CSize -> Int -> CSize # | |
| Bounded CSize # | |
| Enum CSize # | |
Defined in Foreign.C.Types | |
| Eq CSize # | |
| Ord CSize # | |
| Storable CSize # | |
| Integral CSize # | |
| Num CSize # | |
| Real CSize # | |
Defined in Foreign.C.Types Methods toRational :: CSize -> Rational # | |
| Read CSize # | |
| Show CSize # | |
Haskell type representing the C wchar_t type.
Instances
| Bits CWchar # | |
Defined in Foreign.C.Types Methods (.&.) :: CWchar -> CWchar -> CWchar # (.|.) :: CWchar -> CWchar -> CWchar # xor :: CWchar -> CWchar -> CWchar # complement :: CWchar -> CWchar # shift :: CWchar -> Int -> CWchar # rotate :: CWchar -> Int -> CWchar # setBit :: CWchar -> Int -> CWchar # clearBit :: CWchar -> Int -> CWchar # complementBit :: CWchar -> Int -> CWchar # testBit :: CWchar -> Int -> Bool # shiftL :: CWchar -> Int -> CWchar # shiftR :: CWchar -> Int -> CWchar # | |
| Bounded CWchar # | |
| Enum CWchar # | |
Defined in Foreign.C.Types | |
| Eq CWchar # | |
| Ord CWchar # | |
| Storable CWchar # | |
| Integral CWchar # | |
Defined in Foreign.C.Types | |
| Num CWchar # | |
| Real CWchar # | |
Defined in Foreign.C.Types Methods toRational :: CWchar -> Rational # | |
| Read CWchar # | |
| Show CWchar # | |
data CSigAtomic #
Haskell type representing the C sig_atomic_t type.
Instances
Haskell type representing the C long long type.
Instances
| Bits CLLong # | |
Defined in Foreign.C.Types Methods (.&.) :: CLLong -> CLLong -> CLLong # (.|.) :: CLLong -> CLLong -> CLLong # xor :: CLLong -> CLLong -> CLLong # complement :: CLLong -> CLLong # shift :: CLLong -> Int -> CLLong # rotate :: CLLong -> Int -> CLLong # setBit :: CLLong -> Int -> CLLong # clearBit :: CLLong -> Int -> CLLong # complementBit :: CLLong -> Int -> CLLong # testBit :: CLLong -> Int -> Bool # shiftL :: CLLong -> Int -> CLLong # shiftR :: CLLong -> Int -> CLLong # | |
| Bounded CLLong # | |
| Enum CLLong # | |
Defined in Foreign.C.Types | |
| Eq CLLong # | |
| Ord CLLong # | |
| Storable CLLong # | |
| Integral CLLong # | |
Defined in Foreign.C.Types | |
| Num CLLong # | |
| Real CLLong # | |
Defined in Foreign.C.Types Methods toRational :: CLLong -> Rational # | |
| Read CLLong # | |
| Show CLLong # | |
Haskell type representing the C unsigned long long type.
Instances
| Bits CULLong # | |
Defined in Foreign.C.Types Methods (.&.) :: CULLong -> CULLong -> CULLong # (.|.) :: CULLong -> CULLong -> CULLong # xor :: CULLong -> CULLong -> CULLong # complement :: CULLong -> CULLong # shift :: CULLong -> Int -> CULLong # rotate :: CULLong -> Int -> CULLong # setBit :: CULLong -> Int -> CULLong # clearBit :: CULLong -> Int -> CULLong # complementBit :: CULLong -> Int -> CULLong # testBit :: CULLong -> Int -> Bool # shiftL :: CULLong -> Int -> CULLong # shiftR :: CULLong -> Int -> CULLong # | |
| Bounded CULLong # | |
| Enum CULLong # | |
| Eq CULLong # | |
| Ord CULLong # | |
| Storable CULLong # | |
| Integral CULLong # | |
Defined in Foreign.C.Types | |
| Num CULLong # | |
| Real CULLong # | |
Defined in Foreign.C.Types Methods toRational :: CULLong -> Rational # | |
| Read CULLong # | |
| Show CULLong # | |
Instances
| Bits CIntPtr # | |
Defined in Foreign.C.Types Methods (.&.) :: CIntPtr -> CIntPtr -> CIntPtr # (.|.) :: CIntPtr -> CIntPtr -> CIntPtr # xor :: CIntPtr -> CIntPtr -> CIntPtr # complement :: CIntPtr -> CIntPtr # shift :: CIntPtr -> Int -> CIntPtr # rotate :: CIntPtr -> Int -> CIntPtr # setBit :: CIntPtr -> Int -> CIntPtr # clearBit :: CIntPtr -> Int -> CIntPtr # complementBit :: CIntPtr -> Int -> CIntPtr # testBit :: CIntPtr -> Int -> Bool # shiftL :: CIntPtr -> Int -> CIntPtr # shiftR :: CIntPtr -> Int -> CIntPtr # | |
| Bounded CIntPtr # | |
| Enum CIntPtr # | |
| Eq CIntPtr # | |
| Ord CIntPtr # | |
| Storable CIntPtr # | |
| Integral CIntPtr # | |
Defined in Foreign.C.Types | |
| Num CIntPtr # | |
| Real CIntPtr # | |
Defined in Foreign.C.Types Methods toRational :: CIntPtr -> Rational # | |
| Read CIntPtr # | |
| Show CIntPtr # | |
Instances
| Bits CUIntPtr # | |
Defined in Foreign.C.Types Methods (.&.) :: CUIntPtr -> CUIntPtr -> CUIntPtr # (.|.) :: CUIntPtr -> CUIntPtr -> CUIntPtr # xor :: CUIntPtr -> CUIntPtr -> CUIntPtr # complement :: CUIntPtr -> CUIntPtr # shift :: CUIntPtr -> Int -> CUIntPtr # rotate :: CUIntPtr -> Int -> CUIntPtr # setBit :: CUIntPtr -> Int -> CUIntPtr # clearBit :: CUIntPtr -> Int -> CUIntPtr # complementBit :: CUIntPtr -> Int -> CUIntPtr # testBit :: CUIntPtr -> Int -> Bool # isSigned :: CUIntPtr -> Bool # shiftL :: CUIntPtr -> Int -> CUIntPtr # shiftR :: CUIntPtr -> Int -> CUIntPtr # | |
| Bounded CUIntPtr # | |
| Enum CUIntPtr # | |
| Eq CUIntPtr # | |
| Ord CUIntPtr # | |
Defined in Foreign.C.Types | |
| Storable CUIntPtr # | |
Defined in Foreign.C.Types | |
| Integral CUIntPtr # | |
Defined in Foreign.C.Types | |
| Num CUIntPtr # | |
| Real CUIntPtr # | |
Defined in Foreign.C.Types Methods toRational :: CUIntPtr -> Rational # | |
| Read CUIntPtr # | |
| Show CUIntPtr # | |
Instances
| Bits CIntMax # | |
Defined in Foreign.C.Types Methods (.&.) :: CIntMax -> CIntMax -> CIntMax # (.|.) :: CIntMax -> CIntMax -> CIntMax # xor :: CIntMax -> CIntMax -> CIntMax # complement :: CIntMax -> CIntMax # shift :: CIntMax -> Int -> CIntMax # rotate :: CIntMax -> Int -> CIntMax # setBit :: CIntMax -> Int -> CIntMax # clearBit :: CIntMax -> Int -> CIntMax # complementBit :: CIntMax -> Int -> CIntMax # testBit :: CIntMax -> Int -> Bool # shiftL :: CIntMax -> Int -> CIntMax # shiftR :: CIntMax -> Int -> CIntMax # | |
| Bounded CIntMax # | |
| Enum CIntMax # | |
| Eq CIntMax # | |
| Ord CIntMax # | |
| Storable CIntMax # | |
| Integral CIntMax # | |
Defined in Foreign.C.Types | |
| Num CIntMax # | |
| Real CIntMax # | |
Defined in Foreign.C.Types Methods toRational :: CIntMax -> Rational # | |
| Read CIntMax # | |
| Show CIntMax # | |
Instances
| Bits CUIntMax # | |
Defined in Foreign.C.Types Methods (.&.) :: CUIntMax -> CUIntMax -> CUIntMax # (.|.) :: CUIntMax -> CUIntMax -> CUIntMax # xor :: CUIntMax -> CUIntMax -> CUIntMax # complement :: CUIntMax -> CUIntMax # shift :: CUIntMax -> Int -> CUIntMax # rotate :: CUIntMax -> Int -> CUIntMax # setBit :: CUIntMax -> Int -> CUIntMax # clearBit :: CUIntMax -> Int -> CUIntMax # complementBit :: CUIntMax -> Int -> CUIntMax # testBit :: CUIntMax -> Int -> Bool # isSigned :: CUIntMax -> Bool # shiftL :: CUIntMax -> Int -> CUIntMax # shiftR :: CUIntMax -> Int -> CUIntMax # | |
| Bounded CUIntMax # | |
| Enum CUIntMax # | |
| Eq CUIntMax # | |
| Ord CUIntMax # | |
Defined in Foreign.C.Types | |
| Storable CUIntMax # | |
Defined in Foreign.C.Types | |
| Integral CUIntMax # | |
Defined in Foreign.C.Types | |
| Num CUIntMax # | |
| Real CUIntMax # | |
Defined in Foreign.C.Types Methods toRational :: CUIntMax -> Rational # | |
| Read CUIntMax # | |
| Show CUIntMax # | |
Numeric types
Haskell type representing the C clock_t type.
Instances
| Enum CClock # | |
Defined in Foreign.C.Types | |
| Eq CClock # | |
| Ord CClock # | |
| Storable CClock # | |
| Num CClock # | |
| Real CClock # | |
Defined in Foreign.C.Types Methods toRational :: CClock -> Rational # | |
| Read CClock # | |
| Show CClock # | |
Haskell type representing the C time_t type.
Instances
| Enum CTime # | |
Defined in Foreign.C.Types | |
| Eq CTime # | |
| Ord CTime # | |
| Storable CTime # | |
| Num CTime # | |
| Real CTime # | |
Defined in Foreign.C.Types Methods toRational :: CTime -> Rational # | |
| Read CTime # | |
| Show CTime # | |
Floating types
Haskell type representing the C float type.
Instances
| Enum CFloat # | |
Defined in Foreign.C.Types | |
| Eq CFloat # | |
| Ord CFloat # | |
| Storable CFloat # | |
| Floating CFloat # | |
| Fractional CFloat # | |
| Num CFloat # | |
| Real CFloat # | |
Defined in Foreign.C.Types Methods toRational :: CFloat -> Rational # | |
| RealFloat CFloat # | |
Defined in Foreign.C.Types Methods floatRadix :: CFloat -> Integer # floatDigits :: CFloat -> Int # floatRange :: CFloat -> (Int, Int) # decodeFloat :: CFloat -> (Integer, Int) # encodeFloat :: Integer -> Int -> CFloat # significand :: CFloat -> CFloat # scaleFloat :: Int -> CFloat -> CFloat # isInfinite :: CFloat -> Bool # isDenormalized :: CFloat -> Bool # isNegativeZero :: CFloat -> Bool # | |
| RealFrac CFloat # | |
| Read CFloat # | |
| Show CFloat # | |
Haskell type representing the C double type.
Instances
| Enum CDouble # | |
| Eq CDouble # | |
| Ord CDouble # | |
| Storable CDouble # | |
| Floating CDouble # | |
| Fractional CDouble # | |
| Num CDouble # | |
| Real CDouble # | |
Defined in Foreign.C.Types Methods toRational :: CDouble -> Rational # | |
| RealFloat CDouble # | |
Defined in Foreign.C.Types Methods floatRadix :: CDouble -> Integer # floatDigits :: CDouble -> Int # floatRange :: CDouble -> (Int, Int) # decodeFloat :: CDouble -> (Integer, Int) # encodeFloat :: Integer -> Int -> CDouble # significand :: CDouble -> CDouble # scaleFloat :: Int -> CDouble -> CDouble # isInfinite :: CDouble -> Bool # isDenormalized :: CDouble -> Bool # isNegativeZero :: CDouble -> Bool # | |
| RealFrac CDouble # | |
| Read CDouble # | |
| Show CDouble # | |