| License | BSD-style |
|---|---|
| Maintainer | Foundation |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Basement.Compat.C.Types
Synopsis
- newtype CChar :: * = CChar Int8
- newtype CSChar :: * = CSChar Int8
- newtype CUChar :: * = CUChar Word8
- newtype CShort :: * = CShort Int16
- newtype CUShort :: * = CUShort Word16
- newtype CInt :: * = CInt Int32
- newtype CUInt :: * = CUInt Word32
- newtype CLong :: * = CLong Int64
- newtype CULong :: * = CULong Word64
- newtype CPtrdiff :: * = CPtrdiff Int64
- newtype CSize :: * = CSize Word64
- newtype CWchar :: * = CWchar Int32
- newtype CSigAtomic :: * = CSigAtomic Int32
- newtype CLLong :: * = CLLong Int64
- newtype CULLong :: * = CULLong Word64
- newtype CBool :: * = CBool Word8
- newtype CIntPtr :: * = CIntPtr Int64
- newtype CUIntPtr :: * = CUIntPtr Word64
- newtype CIntMax :: * = CIntMax Int64
- newtype CUIntMax :: * = CUIntMax Word64
- newtype CClock :: * = CClock Int64
- newtype CTime :: * = CTime Int64
- newtype CUSeconds :: * = CUSeconds Word32
- newtype CSUSeconds :: * = CSUSeconds Int64
- newtype CFloat :: * = CFloat Float
- data CDouble :: *
- newtype COff :: * = COff Int64
- newtype CMode :: * = CMode Word32
Documentation
Haskell type representing the C char type.
Instances
Haskell type representing the C signed char type.
Instances
Haskell type representing the C unsigned char type.
Instances
Haskell type representing the C short type.
Instances
Haskell type representing the C unsigned short type.
Instances
Haskell type representing the C int type.
Instances
Haskell type representing the C unsigned int type.
Instances
Haskell type representing the C long type.
Instances
Haskell type representing the C unsigned long type.
Instances
Haskell type representing the C ptrdiff_t type.
Instances
Haskell type representing the C size_t type.
Instances
Haskell type representing the C wchar_t type.
Instances
newtype CSigAtomic :: * #
Haskell type representing the C sig_atomic_t type.
Constructors
| CSigAtomic Int32 |
Instances
Haskell type representing the C long long type.
Instances
Haskell type representing the C unsigned long long type.
Instances
Haskell type representing the C bool type.
Since: 4.10.0.0
Instances
Instances
Instances
Instances
Instances
Haskell type representing the C clock_t type.
Instances
| Enum CClock | |
| Eq CClock | |
| Num CClock | |
| Ord CClock | |
| Read CClock | |
| Real CClock | |
Methods toRational :: CClock -> Rational # | |
| Show CClock | |
| Storable CClock | |
| Integral CClock Source # | |
Methods fromInteger :: Integer -> CClock Source # | |
| Subtractive CClock Source # | |
| Additive CClock Source # | |
| Multiplicative CClock Source # | |
| type Difference CClock Source # | |
Haskell type representing the C time_t type.
Instances
| Enum CTime | |
| Eq CTime | |
| Num CTime | |
| Ord CTime | |
| Read CTime | |
| Real CTime | |
Methods toRational :: CTime -> Rational # | |
| Show CTime | |
| Storable CTime | |
| Integral CTime Source # | |
Methods fromInteger :: Integer -> CTime Source # | |
| Subtractive CTime Source # | |
| Additive CTime Source # | |
| Multiplicative CTime Source # | |
| type Difference CTime Source # | |
Haskell type representing the C useconds_t type.
Since: 4.4.0.0
Instances
| Enum CUSeconds | |
Methods succ :: CUSeconds -> CUSeconds # pred :: CUSeconds -> CUSeconds # fromEnum :: CUSeconds -> Int # enumFrom :: CUSeconds -> [CUSeconds] # enumFromThen :: CUSeconds -> CUSeconds -> [CUSeconds] # enumFromTo :: CUSeconds -> CUSeconds -> [CUSeconds] # enumFromThenTo :: CUSeconds -> CUSeconds -> CUSeconds -> [CUSeconds] # | |
| Eq CUSeconds | |
| Num CUSeconds | |
| Ord CUSeconds | |
| Read CUSeconds | |
| Real CUSeconds | |
Methods toRational :: CUSeconds -> Rational # | |
| Show CUSeconds | |
| Storable CUSeconds | |
| Integral CUSeconds Source # | |
Methods fromInteger :: Integer -> CUSeconds Source # | |
| Subtractive CUSeconds Source # | |
| Additive CUSeconds Source # | |
| Multiplicative CUSeconds Source # | |
| type Difference CUSeconds Source # | |
newtype CSUSeconds :: * #
Haskell type representing the C suseconds_t type.
Since: 4.4.0.0
Constructors
| CSUSeconds Int64 |
Instances
Haskell type representing the C float type.
Instances
| Enum CFloat | |
| Eq CFloat | |
| Floating CFloat | |
| Fractional CFloat | |
| Num CFloat | |
| Ord CFloat | |
| Read CFloat | |
| Real CFloat | |
Methods toRational :: CFloat -> Rational # | |
| RealFloat CFloat | |
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 | |
| Show CFloat | |
| Storable CFloat | |
| HasNegation CFloat Source # | |
| Fractional CFloat Source # | |
Methods fromRational :: Rational -> CFloat Source # | |
| Integral CFloat Source # | |
Methods fromInteger :: Integer -> CFloat Source # | |
| Subtractive CFloat Source # | |
| Additive CFloat Source # | |
| Divisible CFloat Source # | |
| Multiplicative CFloat Source # | |
| NormalForm CFloat Source # | |
Methods toNormalForm :: CFloat -> () Source # | |
| type Difference CFloat Source # | |
Haskell type representing the C double type.
Instances
| Enum CDouble | |
| Eq CDouble | |
| Floating CDouble | |
| Fractional CDouble | |
| Num CDouble | |
| Ord CDouble | |
| Read CDouble | |
| Real CDouble | |
Methods toRational :: CDouble -> Rational # | |
| RealFloat CDouble | |
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 | |
| Show CDouble | |
| Storable CDouble | |
| HasNegation CDouble Source # | |
| Fractional CDouble Source # | |
Methods fromRational :: Rational -> CDouble Source # | |
| Integral CDouble Source # | |
Methods fromInteger :: Integer -> CDouble Source # | |
| Subtractive CDouble Source # | |
| Additive CDouble Source # | |
| Divisible CDouble Source # | |
| Multiplicative CDouble Source # | |
| NormalForm CDouble Source # | |
Methods toNormalForm :: CDouble -> () Source # | |
| type Difference CDouble Source # | |
Instances
| Bounded COff | |
| Enum COff | |
| Eq COff | |
| Integral COff | |
| Num COff | |
| Ord COff | |
| Read COff | |
| Real COff | |
Methods toRational :: COff -> Rational # | |
| Show COff | |
| Storable COff | |
| Bits COff | |
Methods (.&.) :: COff -> COff -> COff # (.|.) :: COff -> COff -> COff # complement :: COff -> COff # shift :: COff -> Int -> COff # rotate :: COff -> Int -> COff # setBit :: COff -> Int -> COff # clearBit :: COff -> Int -> COff # complementBit :: COff -> Int -> COff # testBit :: COff -> Int -> Bool # bitSizeMaybe :: COff -> Maybe Int # shiftL :: COff -> Int -> COff # unsafeShiftL :: COff -> Int -> COff # shiftR :: COff -> Int -> COff # unsafeShiftR :: COff -> Int -> COff # rotateL :: COff -> Int -> COff # | |
| FiniteBits COff | |
Methods finiteBitSize :: COff -> Int # countLeadingZeros :: COff -> Int # countTrailingZeros :: COff -> Int # | |
| Integral COff Source # | |
Methods fromInteger :: Integer -> COff Source # | |
| Subtractive COff Source # | |
| Additive COff Source # | |
| Multiplicative COff Source # | |
| type Difference COff Source # | |
Instances
| Bounded CMode | |
| Enum CMode | |
| Eq CMode | |
| Integral CMode | |
| Num CMode | |
| Ord CMode | |
| Read CMode | |
| Real CMode | |
Methods toRational :: CMode -> Rational # | |
| Show CMode | |
| Storable CMode | |
| Bits CMode | |
Methods (.&.) :: CMode -> CMode -> CMode # (.|.) :: CMode -> CMode -> CMode # xor :: CMode -> CMode -> CMode # complement :: CMode -> CMode # shift :: CMode -> Int -> CMode # rotate :: CMode -> Int -> CMode # setBit :: CMode -> Int -> CMode # clearBit :: CMode -> Int -> CMode # complementBit :: CMode -> Int -> CMode # testBit :: CMode -> Int -> Bool # bitSizeMaybe :: CMode -> Maybe Int # shiftL :: CMode -> Int -> CMode # unsafeShiftL :: CMode -> Int -> CMode # shiftR :: CMode -> Int -> CMode # unsafeShiftR :: CMode -> Int -> CMode # rotateL :: CMode -> Int -> CMode # | |
| FiniteBits CMode | |
Methods finiteBitSize :: CMode -> Int # countLeadingZeros :: CMode -> Int # countTrailingZeros :: CMode -> Int # | |