| License | BSD-style |
|---|---|
| Maintainer | Foundation |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Basement.Compat.C.Types
Description
Literal support for Integral and Fractional {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-}
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.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C signed char type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C unsigned char type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C short type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C unsigned short type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C int type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C unsigned int type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C long type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C unsigned long type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C ptrdiff_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C size_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C wchar_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
newtype CSigAtomic #
Haskell type representing the C sig_atomic_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Constructors
| CSigAtomic Int32 |
Instances
Haskell type representing the C long long type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C unsigned long long type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C bool type.
(The concrete types of Foreign.C.Types are platform-specific.)
Since: base-4.10.0.0
Instances
Instances
Instances
Instances
Instances
Haskell type representing the C clock_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
| Storable CClock | |
| Enum CClock | |
Defined in Foreign.C.Types | |
| Num CClock | |
| Read CClock | |
| Real CClock | |
Defined in Foreign.C.Types Methods toRational :: CClock -> Rational # | |
| Show CClock | |
| Integral CClock Source # | |
Defined in Basement.Compat.NumLiteral Methods fromInteger :: Integer -> CClock Source # | |
| Additive CClock Source # | |
| Multiplicative CClock Source # | |
| Subtractive CClock Source # | |
Defined in Basement.Numerical.Subtractive Associated Types type Difference CClock Source # | |
| Eq CClock | |
| Ord CClock | |
| type Difference CClock Source # | |
Defined in Basement.Numerical.Subtractive | |
Haskell type representing the C time_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
| Storable CTime | |
| Enum CTime | |
Defined in Foreign.C.Types | |
| Num CTime | |
| Read CTime | |
| Real CTime | |
Defined in Foreign.C.Types Methods toRational :: CTime -> Rational # | |
| Show CTime | |
| Integral CTime Source # | |
Defined in Basement.Compat.NumLiteral Methods fromInteger :: Integer -> CTime Source # | |
| Additive CTime Source # | |
| Multiplicative CTime Source # | |
| Subtractive CTime Source # | |
Defined in Basement.Numerical.Subtractive Associated Types type Difference CTime Source # | |
| Eq CTime | |
| Ord CTime | |
| type Difference CTime Source # | |
Defined in Basement.Numerical.Subtractive | |
Haskell type representing the C useconds_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Since: base-4.4.0.0
Instances
| Storable CUSeconds | |
Defined in Foreign.C.Types | |
| Enum CUSeconds | |
Defined in Foreign.C.Types 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] # | |
| Num CUSeconds | |
Defined in Foreign.C.Types | |
| Read CUSeconds | |
| Real CUSeconds | |
Defined in Foreign.C.Types Methods toRational :: CUSeconds -> Rational # | |
| Show CUSeconds | |
| Integral CUSeconds Source # | |
Defined in Basement.Compat.NumLiteral Methods fromInteger :: Integer -> CUSeconds Source # | |
| Additive CUSeconds Source # | |
| Multiplicative CUSeconds Source # | |
| Subtractive CUSeconds Source # | |
Defined in Basement.Numerical.Subtractive Associated Types type Difference CUSeconds Source # | |
| Eq CUSeconds | |
| Ord CUSeconds | |
| type Difference CUSeconds Source # | |
Defined in Basement.Numerical.Subtractive | |
newtype CSUSeconds #
Haskell type representing the C suseconds_t type.
(The concrete types of Foreign.C.Types are platform-specific.)
Since: base-4.4.0.0
Constructors
| CSUSeconds Int64 |
Instances
Haskell type representing the C float type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Haskell type representing the C double type.
(The concrete types of Foreign.C.Types are platform-specific.)
Instances
Instances
Instances
| Storable CMode | |
| Bits CMode | |
Defined in System.Posix.Types 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 | |
Defined in System.Posix.Types Methods finiteBitSize :: CMode -> Int # countLeadingZeros :: CMode -> Int # countTrailingZeros :: CMode -> Int # | |
| Bounded CMode | |
| Enum CMode | |
Defined in System.Posix.Types | |
| Ix CMode | |
| Num CMode | |
| Read CMode | |
| Integral CMode | |
| Real CMode | |
Defined in System.Posix.Types Methods toRational :: CMode -> Rational # | |
| Show CMode | |
| Eq CMode | |
| Ord CMode | |