Spec-Zone.ru › Haskell 8

Foreign.C.Types

Copyright (c) The FFI task force 2001
License BSD-style (see the file libraries/base/LICENSE)
Maintainer ffi@haskell.org
Stability provisional
Portability portable
Safe Haskell Trustworthy
Language Haskell2010

Contents

  • Representations of C types
    • Platform differences
    • Integral types
    • Numeric types
    • Floating types
    • Other types

Description

Mapping of C types to corresponding Haskell types.

Representations of C types

These types are needed to accurately represent C function prototypes, in order to access C library interfaces in Haskell. The Haskell system is not required to represent those types exactly as C does, but the following guarantees are provided concerning a Haskell type CT representing a C type t:

  • If a C function prototype has t as an argument or result type, the use of CT in the corresponding position in a foreign declaration permits the Haskell program to access the full range of values encoded by the C type; and conversely, any Haskell value for CT has a valid representation in C.
  • sizeOf (undefined :: CT) will yield the same value as sizeof (t) in C.
  • alignment (undefined :: CT) matches the alignment constraint enforced by the C implementation for t.
  • The members peek and poke of the Storable class map all values of CT to the corresponding value of t and vice versa.
  • When an instance of Bounded is defined for CT, the values of minBound and maxBound coincide with t_MIN and t_MAX in C.
  • When an instance of Eq or Ord is defined for CT, the predicates defined by the type class implement the same relation as the corresponding predicate in C on t.
  • When an instance of Num, Read, Integral, Fractional, Floating, RealFrac, or RealFloat is defined for CT, the arithmetic operations defined by the type class implement the same function as the corresponding arithmetic operations (if available) in C on t.
  • When an instance of Bits is defined for CT, the bitwise operation defined by the type class implement the same function as the corresponding bitwise operation in C on t.

Platform differences

This module contains platform specific information about types. As such, the types presented on this page reflect the platform on which the documentation was generated and may not coincide with the types on your platform.

Integral types

These types are represented as newtypes of types in Data.Int and Data.Word, and are instances of Eq, Ord, Num, Read, Show, Enum, Typeable, Storable, Bounded, Real, Integral and Bits.

newtype CChar Source

Haskell type representing the C char type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CChar Int8
Instances
Instances details
Bounded CChar
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CChar Source

maxBound :: CChar Source

Enum CChar
Instance details

Defined in Foreign.C.Types

Methods

succ :: CChar -> CChar Source

pred :: CChar -> CChar Source

toEnum :: Int -> CChar Source

fromEnum :: CChar -> Int Source

enumFrom :: CChar -> [CChar] Source

enumFromThen :: CChar -> CChar -> [CChar] Source

enumFromTo :: CChar -> CChar -> [CChar] Source

enumFromThenTo :: CChar -> CChar -> CChar -> [CChar] Source

Eq CChar
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CChar -> CChar -> Bool Source

(/=) :: CChar -> CChar -> Bool Source

Integral CChar
Instance details

Defined in Foreign.C.Types

Methods

quot :: CChar -> CChar -> CChar Source

rem :: CChar -> CChar -> CChar Source

div :: CChar -> CChar -> CChar Source

mod :: CChar -> CChar -> CChar Source

quotRem :: CChar -> CChar -> (CChar, CChar) Source

divMod :: CChar -> CChar -> (CChar, CChar) Source

toInteger :: CChar -> Integer Source

Num CChar
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CChar -> CChar -> CChar Source

(-) :: CChar -> CChar -> CChar Source

(*) :: CChar -> CChar -> CChar Source

negate :: CChar -> CChar Source

abs :: CChar -> CChar Source

signum :: CChar -> CChar Source

fromInteger :: Integer -> CChar Source

Ord CChar
Instance details

Defined in Foreign.C.Types

Methods

compare :: CChar -> CChar -> Ordering Source

(<) :: CChar -> CChar -> Bool Source

(<=) :: CChar -> CChar -> Bool Source

(>) :: CChar -> CChar -> Bool Source

(>=) :: CChar -> CChar -> Bool Source

max :: CChar -> CChar -> CChar Source

min :: CChar -> CChar -> CChar Source

Read CChar
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CChar Source

readList :: ReadS [CChar] Source

readPrec :: ReadPrec CChar Source

readListPrec :: ReadPrec [CChar] Source

Real CChar
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CChar -> Rational Source

Show CChar
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CChar -> ShowS Source

show :: CChar -> String Source

showList :: [CChar] -> ShowS Source

FiniteBits CChar
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CChar -> Int Source

countLeadingZeros :: CChar -> Int Source

countTrailingZeros :: CChar -> Int Source

Bits CChar
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CChar -> CChar -> CChar Source

(.|.) :: CChar -> CChar -> CChar Source

xor :: CChar -> CChar -> CChar Source

complement :: CChar -> CChar Source

shift :: CChar -> Int -> CChar Source

rotate :: CChar -> Int -> CChar Source

zeroBits :: CChar Source

bit :: Int -> CChar Source

setBit :: CChar -> Int -> CChar Source

clearBit :: CChar -> Int -> CChar Source

complementBit :: CChar -> Int -> CChar Source

testBit :: CChar -> Int -> Bool Source

bitSizeMaybe :: CChar -> Maybe Int Source

bitSize :: CChar -> Int Source

isSigned :: CChar -> Bool Source

shiftL :: CChar -> Int -> CChar Source

unsafeShiftL :: CChar -> Int -> CChar Source

shiftR :: CChar -> Int -> CChar Source

unsafeShiftR :: CChar -> Int -> CChar Source

rotateL :: CChar -> Int -> CChar Source

rotateR :: CChar -> Int -> CChar Source

popCount :: CChar -> Int Source

Storable CChar
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CChar -> Int Source

alignment :: CChar -> Int Source

peekElemOff :: Ptr CChar -> Int -> IO CChar Source

pokeElemOff :: Ptr CChar -> Int -> CChar -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CChar Source

pokeByteOff :: Ptr b -> Int -> CChar -> IO () Source

peek :: Ptr CChar -> IO CChar Source

poke :: Ptr CChar -> CChar -> IO () Source

newtype CSChar Source

Haskell type representing the C signed char type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CSChar Int8
Instances
Instances details
Bounded CSChar
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CSChar Source

maxBound :: CSChar Source

Enum CSChar
Instance details

Defined in Foreign.C.Types

Methods

succ :: CSChar -> CSChar Source

pred :: CSChar -> CSChar Source

toEnum :: Int -> CSChar Source

fromEnum :: CSChar -> Int Source

enumFrom :: CSChar -> [CSChar] Source

enumFromThen :: CSChar -> CSChar -> [CSChar] Source

enumFromTo :: CSChar -> CSChar -> [CSChar] Source

enumFromThenTo :: CSChar -> CSChar -> CSChar -> [CSChar] Source

Eq CSChar
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CSChar -> CSChar -> Bool Source

(/=) :: CSChar -> CSChar -> Bool Source

Integral CSChar
Instance details

Defined in Foreign.C.Types

Methods

quot :: CSChar -> CSChar -> CSChar Source

rem :: CSChar -> CSChar -> CSChar Source

div :: CSChar -> CSChar -> CSChar Source

mod :: CSChar -> CSChar -> CSChar Source

quotRem :: CSChar -> CSChar -> (CSChar, CSChar) Source

divMod :: CSChar -> CSChar -> (CSChar, CSChar) Source

toInteger :: CSChar -> Integer Source

Num CSChar
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CSChar -> CSChar -> CSChar Source

(-) :: CSChar -> CSChar -> CSChar Source

(*) :: CSChar -> CSChar -> CSChar Source

negate :: CSChar -> CSChar Source

abs :: CSChar -> CSChar Source

signum :: CSChar -> CSChar Source

fromInteger :: Integer -> CSChar Source

Ord CSChar
Instance details

Defined in Foreign.C.Types

Methods

compare :: CSChar -> CSChar -> Ordering Source

(<) :: CSChar -> CSChar -> Bool Source

(<=) :: CSChar -> CSChar -> Bool Source

(>) :: CSChar -> CSChar -> Bool Source

(>=) :: CSChar -> CSChar -> Bool Source

max :: CSChar -> CSChar -> CSChar Source

min :: CSChar -> CSChar -> CSChar Source

Read CSChar
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSChar Source

readList :: ReadS [CSChar] Source

readPrec :: ReadPrec CSChar Source

readListPrec :: ReadPrec [CSChar] Source

Real CSChar
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CSChar -> Rational Source

Show CSChar
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CSChar -> ShowS Source

show :: CSChar -> String Source

showList :: [CSChar] -> ShowS Source

FiniteBits CSChar
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CSChar -> Int Source

countLeadingZeros :: CSChar -> Int Source

countTrailingZeros :: CSChar -> Int Source

Bits CSChar
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CSChar -> CSChar -> CSChar Source

(.|.) :: CSChar -> CSChar -> CSChar Source

xor :: CSChar -> CSChar -> CSChar Source

complement :: CSChar -> CSChar Source

shift :: CSChar -> Int -> CSChar Source

rotate :: CSChar -> Int -> CSChar Source

zeroBits :: CSChar Source

bit :: Int -> CSChar Source

setBit :: CSChar -> Int -> CSChar Source

clearBit :: CSChar -> Int -> CSChar Source

complementBit :: CSChar -> Int -> CSChar Source

testBit :: CSChar -> Int -> Bool Source

bitSizeMaybe :: CSChar -> Maybe Int Source

bitSize :: CSChar -> Int Source

isSigned :: CSChar -> Bool Source

shiftL :: CSChar -> Int -> CSChar Source

unsafeShiftL :: CSChar -> Int -> CSChar Source

shiftR :: CSChar -> Int -> CSChar Source

unsafeShiftR :: CSChar -> Int -> CSChar Source

rotateL :: CSChar -> Int -> CSChar Source

rotateR :: CSChar -> Int -> CSChar Source

popCount :: CSChar -> Int Source

Storable CSChar
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CSChar -> Int Source

alignment :: CSChar -> Int Source

peekElemOff :: Ptr CSChar -> Int -> IO CSChar Source

pokeElemOff :: Ptr CSChar -> Int -> CSChar -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CSChar Source

pokeByteOff :: Ptr b -> Int -> CSChar -> IO () Source

peek :: Ptr CSChar -> IO CSChar Source

poke :: Ptr CSChar -> CSChar -> IO () Source

newtype CUChar Source

Haskell type representing the C unsigned char type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CUChar Word8
Instances
Instances details
Bounded CUChar
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CUChar Source

maxBound :: CUChar Source

Enum CUChar
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUChar -> CUChar Source

pred :: CUChar -> CUChar Source

toEnum :: Int -> CUChar Source

fromEnum :: CUChar -> Int Source

enumFrom :: CUChar -> [CUChar] Source

enumFromThen :: CUChar -> CUChar -> [CUChar] Source

enumFromTo :: CUChar -> CUChar -> [CUChar] Source

enumFromThenTo :: CUChar -> CUChar -> CUChar -> [CUChar] Source

Eq CUChar
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUChar -> CUChar -> Bool Source

(/=) :: CUChar -> CUChar -> Bool Source

Integral CUChar
Instance details

Defined in Foreign.C.Types

Methods

quot :: CUChar -> CUChar -> CUChar Source

rem :: CUChar -> CUChar -> CUChar Source

div :: CUChar -> CUChar -> CUChar Source

mod :: CUChar -> CUChar -> CUChar Source

quotRem :: CUChar -> CUChar -> (CUChar, CUChar) Source

divMod :: CUChar -> CUChar -> (CUChar, CUChar) Source

toInteger :: CUChar -> Integer Source

Num CUChar
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUChar -> CUChar -> CUChar Source

(-) :: CUChar -> CUChar -> CUChar Source

(*) :: CUChar -> CUChar -> CUChar Source

negate :: CUChar -> CUChar Source

abs :: CUChar -> CUChar Source

signum :: CUChar -> CUChar Source

fromInteger :: Integer -> CUChar Source

Ord CUChar
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUChar -> CUChar -> Ordering Source

(<) :: CUChar -> CUChar -> Bool Source

(<=) :: CUChar -> CUChar -> Bool Source

(>) :: CUChar -> CUChar -> Bool Source

(>=) :: CUChar -> CUChar -> Bool Source

max :: CUChar -> CUChar -> CUChar Source

min :: CUChar -> CUChar -> CUChar Source

Read CUChar
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUChar Source

readList :: ReadS [CUChar] Source

readPrec :: ReadPrec CUChar Source

readListPrec :: ReadPrec [CUChar] Source

Real CUChar
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUChar -> Rational Source

Show CUChar
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUChar -> ShowS Source

show :: CUChar -> String Source

showList :: [CUChar] -> ShowS Source

FiniteBits CUChar
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CUChar -> Int Source

countLeadingZeros :: CUChar -> Int Source

countTrailingZeros :: CUChar -> Int Source

Bits CUChar
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CUChar -> CUChar -> CUChar Source

(.|.) :: CUChar -> CUChar -> CUChar Source

xor :: CUChar -> CUChar -> CUChar Source

complement :: CUChar -> CUChar Source

shift :: CUChar -> Int -> CUChar Source

rotate :: CUChar -> Int -> CUChar Source

zeroBits :: CUChar Source

bit :: Int -> CUChar Source

setBit :: CUChar -> Int -> CUChar Source

clearBit :: CUChar -> Int -> CUChar Source

complementBit :: CUChar -> Int -> CUChar Source

testBit :: CUChar -> Int -> Bool Source

bitSizeMaybe :: CUChar -> Maybe Int Source

bitSize :: CUChar -> Int Source

isSigned :: CUChar -> Bool Source

shiftL :: CUChar -> Int -> CUChar Source

unsafeShiftL :: CUChar -> Int -> CUChar Source

shiftR :: CUChar -> Int -> CUChar Source

unsafeShiftR :: CUChar -> Int -> CUChar Source

rotateL :: CUChar -> Int -> CUChar Source

rotateR :: CUChar -> Int -> CUChar Source

popCount :: CUChar -> Int Source

Storable CUChar
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUChar -> Int Source

alignment :: CUChar -> Int Source

peekElemOff :: Ptr CUChar -> Int -> IO CUChar Source

pokeElemOff :: Ptr CUChar -> Int -> CUChar -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUChar Source

pokeByteOff :: Ptr b -> Int -> CUChar -> IO () Source

peek :: Ptr CUChar -> IO CUChar Source

poke :: Ptr CUChar -> CUChar -> IO () Source

newtype CShort Source

Haskell type representing the C short type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CShort Int16
Instances
Instances details
Bounded CShort
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CShort Source

maxBound :: CShort Source

Enum CShort
Instance details

Defined in Foreign.C.Types

Methods

succ :: CShort -> CShort Source

pred :: CShort -> CShort Source

toEnum :: Int -> CShort Source

fromEnum :: CShort -> Int Source

enumFrom :: CShort -> [CShort] Source

enumFromThen :: CShort -> CShort -> [CShort] Source

enumFromTo :: CShort -> CShort -> [CShort] Source

enumFromThenTo :: CShort -> CShort -> CShort -> [CShort] Source

Eq CShort
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CShort -> CShort -> Bool Source

(/=) :: CShort -> CShort -> Bool Source

Integral CShort
Instance details

Defined in Foreign.C.Types

Methods

quot :: CShort -> CShort -> CShort Source

rem :: CShort -> CShort -> CShort Source

div :: CShort -> CShort -> CShort Source

mod :: CShort -> CShort -> CShort Source

quotRem :: CShort -> CShort -> (CShort, CShort) Source

divMod :: CShort -> CShort -> (CShort, CShort) Source

toInteger :: CShort -> Integer Source

Num CShort
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CShort -> CShort -> CShort Source

(-) :: CShort -> CShort -> CShort Source

(*) :: CShort -> CShort -> CShort Source

negate :: CShort -> CShort Source

abs :: CShort -> CShort Source

signum :: CShort -> CShort Source

fromInteger :: Integer -> CShort Source

Ord CShort
Instance details

Defined in Foreign.C.Types

Methods

compare :: CShort -> CShort -> Ordering Source

(<) :: CShort -> CShort -> Bool Source

(<=) :: CShort -> CShort -> Bool Source

(>) :: CShort -> CShort -> Bool Source

(>=) :: CShort -> CShort -> Bool Source

max :: CShort -> CShort -> CShort Source

min :: CShort -> CShort -> CShort Source

Read CShort
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CShort Source

readList :: ReadS [CShort] Source

readPrec :: ReadPrec CShort Source

readListPrec :: ReadPrec [CShort] Source

Real CShort
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CShort -> Rational Source

Show CShort
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CShort -> ShowS Source

show :: CShort -> String Source

showList :: [CShort] -> ShowS Source

FiniteBits CShort
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CShort -> Int Source

countLeadingZeros :: CShort -> Int Source

countTrailingZeros :: CShort -> Int Source

Bits CShort
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CShort -> CShort -> CShort Source

(.|.) :: CShort -> CShort -> CShort Source

xor :: CShort -> CShort -> CShort Source

complement :: CShort -> CShort Source

shift :: CShort -> Int -> CShort Source

rotate :: CShort -> Int -> CShort Source

zeroBits :: CShort Source

bit :: Int -> CShort Source

setBit :: CShort -> Int -> CShort Source

clearBit :: CShort -> Int -> CShort Source

complementBit :: CShort -> Int -> CShort Source

testBit :: CShort -> Int -> Bool Source

bitSizeMaybe :: CShort -> Maybe Int Source

bitSize :: CShort -> Int Source

isSigned :: CShort -> Bool Source

shiftL :: CShort -> Int -> CShort Source

unsafeShiftL :: CShort -> Int -> CShort Source

shiftR :: CShort -> Int -> CShort Source

unsafeShiftR :: CShort -> Int -> CShort Source

rotateL :: CShort -> Int -> CShort Source

rotateR :: CShort -> Int -> CShort Source

popCount :: CShort -> Int Source

Storable CShort
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CShort -> Int Source

alignment :: CShort -> Int Source

peekElemOff :: Ptr CShort -> Int -> IO CShort Source

pokeElemOff :: Ptr CShort -> Int -> CShort -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CShort Source

pokeByteOff :: Ptr b -> Int -> CShort -> IO () Source

peek :: Ptr CShort -> IO CShort Source

poke :: Ptr CShort -> CShort -> IO () Source

newtype CUShort Source

Haskell type representing the C unsigned short type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CUShort Word16
Instances
Instances details
Bounded CUShort
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CUShort Source

maxBound :: CUShort Source

Enum CUShort
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUShort -> CUShort Source

pred :: CUShort -> CUShort Source

toEnum :: Int -> CUShort Source

fromEnum :: CUShort -> Int Source

enumFrom :: CUShort -> [CUShort] Source

enumFromThen :: CUShort -> CUShort -> [CUShort] Source

enumFromTo :: CUShort -> CUShort -> [CUShort] Source

enumFromThenTo :: CUShort -> CUShort -> CUShort -> [CUShort] Source

Eq CUShort
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUShort -> CUShort -> Bool Source

(/=) :: CUShort -> CUShort -> Bool Source

Integral CUShort
Instance details

Defined in Foreign.C.Types

Methods

quot :: CUShort -> CUShort -> CUShort Source

rem :: CUShort -> CUShort -> CUShort Source

div :: CUShort -> CUShort -> CUShort Source

mod :: CUShort -> CUShort -> CUShort Source

quotRem :: CUShort -> CUShort -> (CUShort, CUShort) Source

divMod :: CUShort -> CUShort -> (CUShort, CUShort) Source

toInteger :: CUShort -> Integer Source

Num CUShort
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUShort -> CUShort -> CUShort Source

(-) :: CUShort -> CUShort -> CUShort Source

(*) :: CUShort -> CUShort -> CUShort Source

negate :: CUShort -> CUShort Source

abs :: CUShort -> CUShort Source

signum :: CUShort -> CUShort Source

fromInteger :: Integer -> CUShort Source

Ord CUShort
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUShort -> CUShort -> Ordering Source

(<) :: CUShort -> CUShort -> Bool Source

(<=) :: CUShort -> CUShort -> Bool Source

(>) :: CUShort -> CUShort -> Bool Source

(>=) :: CUShort -> CUShort -> Bool Source

max :: CUShort -> CUShort -> CUShort Source

min :: CUShort -> CUShort -> CUShort Source

Read CUShort
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUShort Source

readList :: ReadS [CUShort] Source

readPrec :: ReadPrec CUShort Source

readListPrec :: ReadPrec [CUShort] Source

Real CUShort
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUShort -> Rational Source

Show CUShort
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUShort -> ShowS Source

show :: CUShort -> String Source

showList :: [CUShort] -> ShowS Source

FiniteBits CUShort
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CUShort -> Int Source

countLeadingZeros :: CUShort -> Int Source

countTrailingZeros :: CUShort -> Int Source

Bits CUShort
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CUShort -> CUShort -> CUShort Source

(.|.) :: CUShort -> CUShort -> CUShort Source

xor :: CUShort -> CUShort -> CUShort Source

complement :: CUShort -> CUShort Source

shift :: CUShort -> Int -> CUShort Source

rotate :: CUShort -> Int -> CUShort Source

zeroBits :: CUShort Source

bit :: Int -> CUShort Source

setBit :: CUShort -> Int -> CUShort Source

clearBit :: CUShort -> Int -> CUShort Source

complementBit :: CUShort -> Int -> CUShort Source

testBit :: CUShort -> Int -> Bool Source

bitSizeMaybe :: CUShort -> Maybe Int Source

bitSize :: CUShort -> Int Source

isSigned :: CUShort -> Bool Source

shiftL :: CUShort -> Int -> CUShort Source

unsafeShiftL :: CUShort -> Int -> CUShort Source

shiftR :: CUShort -> Int -> CUShort Source

unsafeShiftR :: CUShort -> Int -> CUShort Source

rotateL :: CUShort -> Int -> CUShort Source

rotateR :: CUShort -> Int -> CUShort Source

popCount :: CUShort -> Int Source

Storable CUShort
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUShort -> Int Source

alignment :: CUShort -> Int Source

peekElemOff :: Ptr CUShort -> Int -> IO CUShort Source

pokeElemOff :: Ptr CUShort -> Int -> CUShort -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUShort Source

pokeByteOff :: Ptr b -> Int -> CUShort -> IO () Source

peek :: Ptr CUShort -> IO CUShort Source

poke :: Ptr CUShort -> CUShort -> IO () Source

newtype CInt Source

Haskell type representing the C int type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CInt Int32
Instances
Instances details
Bounded CInt
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CInt Source

maxBound :: CInt Source

Enum CInt
Instance details

Defined in Foreign.C.Types

Methods

succ :: CInt -> CInt Source

pred :: CInt -> CInt Source

toEnum :: Int -> CInt Source

fromEnum :: CInt -> Int Source

enumFrom :: CInt -> [CInt] Source

enumFromThen :: CInt -> CInt -> [CInt] Source

enumFromTo :: CInt -> CInt -> [CInt] Source

enumFromThenTo :: CInt -> CInt -> CInt -> [CInt] Source

Eq CInt
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CInt -> CInt -> Bool Source

(/=) :: CInt -> CInt -> Bool Source

Integral CInt
Instance details

Defined in Foreign.C.Types

Methods

quot :: CInt -> CInt -> CInt Source

rem :: CInt -> CInt -> CInt Source

div :: CInt -> CInt -> CInt Source

mod :: CInt -> CInt -> CInt Source

quotRem :: CInt -> CInt -> (CInt, CInt) Source

divMod :: CInt -> CInt -> (CInt, CInt) Source

toInteger :: CInt -> Integer Source

Num CInt
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CInt -> CInt -> CInt Source

(-) :: CInt -> CInt -> CInt Source

(*) :: CInt -> CInt -> CInt Source

negate :: CInt -> CInt Source

abs :: CInt -> CInt Source

signum :: CInt -> CInt Source

fromInteger :: Integer -> CInt Source

Ord CInt
Instance details

Defined in Foreign.C.Types

Methods

compare :: CInt -> CInt -> Ordering Source

(<) :: CInt -> CInt -> Bool Source

(<=) :: CInt -> CInt -> Bool Source

(>) :: CInt -> CInt -> Bool Source

(>=) :: CInt -> CInt -> Bool Source

max :: CInt -> CInt -> CInt Source

min :: CInt -> CInt -> CInt Source

Read CInt
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CInt Source

readList :: ReadS [CInt] Source

readPrec :: ReadPrec CInt Source

readListPrec :: ReadPrec [CInt] Source

Real CInt
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CInt -> Rational Source

Show CInt
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CInt -> ShowS Source

show :: CInt -> String Source

showList :: [CInt] -> ShowS Source

FiniteBits CInt
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CInt -> Int Source

countLeadingZeros :: CInt -> Int Source

countTrailingZeros :: CInt -> Int Source

Bits CInt
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CInt -> CInt -> CInt Source

(.|.) :: CInt -> CInt -> CInt Source

xor :: CInt -> CInt -> CInt Source

complement :: CInt -> CInt Source

shift :: CInt -> Int -> CInt Source

rotate :: CInt -> Int -> CInt Source

zeroBits :: CInt Source

bit :: Int -> CInt Source

setBit :: CInt -> Int -> CInt Source

clearBit :: CInt -> Int -> CInt Source

complementBit :: CInt -> Int -> CInt Source

testBit :: CInt -> Int -> Bool Source

bitSizeMaybe :: CInt -> Maybe Int Source

bitSize :: CInt -> Int Source

isSigned :: CInt -> Bool Source

shiftL :: CInt -> Int -> CInt Source

unsafeShiftL :: CInt -> Int -> CInt Source

shiftR :: CInt -> Int -> CInt Source

unsafeShiftR :: CInt -> Int -> CInt Source

rotateL :: CInt -> Int -> CInt Source

rotateR :: CInt -> Int -> CInt Source

popCount :: CInt -> Int Source

Storable CInt
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CInt -> Int Source

alignment :: CInt -> Int Source

peekElemOff :: Ptr CInt -> Int -> IO CInt Source

pokeElemOff :: Ptr CInt -> Int -> CInt -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CInt Source

pokeByteOff :: Ptr b -> Int -> CInt -> IO () Source

peek :: Ptr CInt -> IO CInt Source

poke :: Ptr CInt -> CInt -> IO () Source

newtype CUInt Source

Haskell type representing the C unsigned int type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CUInt Word32
Instances
Instances details
Bounded CUInt
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CUInt Source

maxBound :: CUInt Source

Enum CUInt
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUInt -> CUInt Source

pred :: CUInt -> CUInt Source

toEnum :: Int -> CUInt Source

fromEnum :: CUInt -> Int Source

enumFrom :: CUInt -> [CUInt] Source

enumFromThen :: CUInt -> CUInt -> [CUInt] Source

enumFromTo :: CUInt -> CUInt -> [CUInt] Source

enumFromThenTo :: CUInt -> CUInt -> CUInt -> [CUInt] Source

Eq CUInt
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUInt -> CUInt -> Bool Source

(/=) :: CUInt -> CUInt -> Bool Source

Integral CUInt
Instance details

Defined in Foreign.C.Types

Methods

quot :: CUInt -> CUInt -> CUInt Source

rem :: CUInt -> CUInt -> CUInt Source

div :: CUInt -> CUInt -> CUInt Source

mod :: CUInt -> CUInt -> CUInt Source

quotRem :: CUInt -> CUInt -> (CUInt, CUInt) Source

divMod :: CUInt -> CUInt -> (CUInt, CUInt) Source

toInteger :: CUInt -> Integer Source

Num CUInt
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUInt -> CUInt -> CUInt Source

(-) :: CUInt -> CUInt -> CUInt Source

(*) :: CUInt -> CUInt -> CUInt Source

negate :: CUInt -> CUInt Source

abs :: CUInt -> CUInt Source

signum :: CUInt -> CUInt Source

fromInteger :: Integer -> CUInt Source

Ord CUInt
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUInt -> CUInt -> Ordering Source

(<) :: CUInt -> CUInt -> Bool Source

(<=) :: CUInt -> CUInt -> Bool Source

(>) :: CUInt -> CUInt -> Bool Source

(>=) :: CUInt -> CUInt -> Bool Source

max :: CUInt -> CUInt -> CUInt Source

min :: CUInt -> CUInt -> CUInt Source

Read CUInt
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUInt Source

readList :: ReadS [CUInt] Source

readPrec :: ReadPrec CUInt Source

readListPrec :: ReadPrec [CUInt] Source

Real CUInt
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUInt -> Rational Source

Show CUInt
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUInt -> ShowS Source

show :: CUInt -> String Source

showList :: [CUInt] -> ShowS Source

FiniteBits CUInt
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CUInt -> Int Source

countLeadingZeros :: CUInt -> Int Source

countTrailingZeros :: CUInt -> Int Source

Bits CUInt
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CUInt -> CUInt -> CUInt Source

(.|.) :: CUInt -> CUInt -> CUInt Source

xor :: CUInt -> CUInt -> CUInt Source

complement :: CUInt -> CUInt Source

shift :: CUInt -> Int -> CUInt Source

rotate :: CUInt -> Int -> CUInt Source

zeroBits :: CUInt Source

bit :: Int -> CUInt Source

setBit :: CUInt -> Int -> CUInt Source

clearBit :: CUInt -> Int -> CUInt Source

complementBit :: CUInt -> Int -> CUInt Source

testBit :: CUInt -> Int -> Bool Source

bitSizeMaybe :: CUInt -> Maybe Int Source

bitSize :: CUInt -> Int Source

isSigned :: CUInt -> Bool Source

shiftL :: CUInt -> Int -> CUInt Source

unsafeShiftL :: CUInt -> Int -> CUInt Source

shiftR :: CUInt -> Int -> CUInt Source

unsafeShiftR :: CUInt -> Int -> CUInt Source

rotateL :: CUInt -> Int -> CUInt Source

rotateR :: CUInt -> Int -> CUInt Source

popCount :: CUInt -> Int Source

Storable CUInt
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUInt -> Int Source

alignment :: CUInt -> Int Source

peekElemOff :: Ptr CUInt -> Int -> IO CUInt Source

pokeElemOff :: Ptr CUInt -> Int -> CUInt -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUInt Source

pokeByteOff :: Ptr b -> Int -> CUInt -> IO () Source

peek :: Ptr CUInt -> IO CUInt Source

poke :: Ptr CUInt -> CUInt -> IO () Source

newtype CLong Source

Haskell type representing the C long type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CLong Int64
Instances
Instances details
Bounded CLong
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CLong Source

maxBound :: CLong Source

Enum CLong
Instance details

Defined in Foreign.C.Types

Methods

succ :: CLong -> CLong Source

pred :: CLong -> CLong Source

toEnum :: Int -> CLong Source

fromEnum :: CLong -> Int Source

enumFrom :: CLong -> [CLong] Source

enumFromThen :: CLong -> CLong -> [CLong] Source

enumFromTo :: CLong -> CLong -> [CLong] Source

enumFromThenTo :: CLong -> CLong -> CLong -> [CLong] Source

Eq CLong
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CLong -> CLong -> Bool Source

(/=) :: CLong -> CLong -> Bool Source

Integral CLong
Instance details

Defined in Foreign.C.Types

Methods

quot :: CLong -> CLong -> CLong Source

rem :: CLong -> CLong -> CLong Source

div :: CLong -> CLong -> CLong Source

mod :: CLong -> CLong -> CLong Source

quotRem :: CLong -> CLong -> (CLong, CLong) Source

divMod :: CLong -> CLong -> (CLong, CLong) Source

toInteger :: CLong -> Integer Source

Num CLong
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CLong -> CLong -> CLong Source

(-) :: CLong -> CLong -> CLong Source

(*) :: CLong -> CLong -> CLong Source

negate :: CLong -> CLong Source

abs :: CLong -> CLong Source

signum :: CLong -> CLong Source

fromInteger :: Integer -> CLong Source

Ord CLong
Instance details

Defined in Foreign.C.Types

Methods

compare :: CLong -> CLong -> Ordering Source

(<) :: CLong -> CLong -> Bool Source

(<=) :: CLong -> CLong -> Bool Source

(>) :: CLong -> CLong -> Bool Source

(>=) :: CLong -> CLong -> Bool Source

max :: CLong -> CLong -> CLong Source

min :: CLong -> CLong -> CLong Source

Read CLong
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CLong Source

readList :: ReadS [CLong] Source

readPrec :: ReadPrec CLong Source

readListPrec :: ReadPrec [CLong] Source

Real CLong
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CLong -> Rational Source

Show CLong
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CLong -> ShowS Source

show :: CLong -> String Source

showList :: [CLong] -> ShowS Source

FiniteBits CLong
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CLong -> Int Source

countLeadingZeros :: CLong -> Int Source

countTrailingZeros :: CLong -> Int Source

Bits CLong
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CLong -> CLong -> CLong Source

(.|.) :: CLong -> CLong -> CLong Source

xor :: CLong -> CLong -> CLong Source

complement :: CLong -> CLong Source

shift :: CLong -> Int -> CLong Source

rotate :: CLong -> Int -> CLong Source

zeroBits :: CLong Source

bit :: Int -> CLong Source

setBit :: CLong -> Int -> CLong Source

clearBit :: CLong -> Int -> CLong Source

complementBit :: CLong -> Int -> CLong Source

testBit :: CLong -> Int -> Bool Source

bitSizeMaybe :: CLong -> Maybe Int Source

bitSize :: CLong -> Int Source

isSigned :: CLong -> Bool Source

shiftL :: CLong -> Int -> CLong Source

unsafeShiftL :: CLong -> Int -> CLong Source

shiftR :: CLong -> Int -> CLong Source

unsafeShiftR :: CLong -> Int -> CLong Source

rotateL :: CLong -> Int -> CLong Source

rotateR :: CLong -> Int -> CLong Source

popCount :: CLong -> Int Source

Storable CLong
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CLong -> Int Source

alignment :: CLong -> Int Source

peekElemOff :: Ptr CLong -> Int -> IO CLong Source

pokeElemOff :: Ptr CLong -> Int -> CLong -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CLong Source

pokeByteOff :: Ptr b -> Int -> CLong -> IO () Source

peek :: Ptr CLong -> IO CLong Source

poke :: Ptr CLong -> CLong -> IO () Source

newtype CULong Source

Haskell type representing the C unsigned long type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CULong Word64
Instances
Instances details
Bounded CULong
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CULong Source

maxBound :: CULong Source

Enum CULong
Instance details

Defined in Foreign.C.Types

Methods

succ :: CULong -> CULong Source

pred :: CULong -> CULong Source

toEnum :: Int -> CULong Source

fromEnum :: CULong -> Int Source

enumFrom :: CULong -> [CULong] Source

enumFromThen :: CULong -> CULong -> [CULong] Source

enumFromTo :: CULong -> CULong -> [CULong] Source

enumFromThenTo :: CULong -> CULong -> CULong -> [CULong] Source

Eq CULong
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CULong -> CULong -> Bool Source

(/=) :: CULong -> CULong -> Bool Source

Integral CULong
Instance details

Defined in Foreign.C.Types

Methods

quot :: CULong -> CULong -> CULong Source

rem :: CULong -> CULong -> CULong Source

div :: CULong -> CULong -> CULong Source

mod :: CULong -> CULong -> CULong Source

quotRem :: CULong -> CULong -> (CULong, CULong) Source

divMod :: CULong -> CULong -> (CULong, CULong) Source

toInteger :: CULong -> Integer Source

Num CULong
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CULong -> CULong -> CULong Source

(-) :: CULong -> CULong -> CULong Source

(*) :: CULong -> CULong -> CULong Source

negate :: CULong -> CULong Source

abs :: CULong -> CULong Source

signum :: CULong -> CULong Source

fromInteger :: Integer -> CULong Source

Ord CULong
Instance details

Defined in Foreign.C.Types

Methods

compare :: CULong -> CULong -> Ordering Source

(<) :: CULong -> CULong -> Bool Source

(<=) :: CULong -> CULong -> Bool Source

(>) :: CULong -> CULong -> Bool Source

(>=) :: CULong -> CULong -> Bool Source

max :: CULong -> CULong -> CULong Source

min :: CULong -> CULong -> CULong Source

Read CULong
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CULong Source

readList :: ReadS [CULong] Source

readPrec :: ReadPrec CULong Source

readListPrec :: ReadPrec [CULong] Source

Real CULong
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CULong -> Rational Source

Show CULong
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CULong -> ShowS Source

show :: CULong -> String Source

showList :: [CULong] -> ShowS Source

FiniteBits CULong
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CULong -> Int Source

countLeadingZeros :: CULong -> Int Source

countTrailingZeros :: CULong -> Int Source

Bits CULong
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CULong -> CULong -> CULong Source

(.|.) :: CULong -> CULong -> CULong Source

xor :: CULong -> CULong -> CULong Source

complement :: CULong -> CULong Source

shift :: CULong -> Int -> CULong Source

rotate :: CULong -> Int -> CULong Source

zeroBits :: CULong Source

bit :: Int -> CULong Source

setBit :: CULong -> Int -> CULong Source

clearBit :: CULong -> Int -> CULong Source

complementBit :: CULong -> Int -> CULong Source

testBit :: CULong -> Int -> Bool Source

bitSizeMaybe :: CULong -> Maybe Int Source

bitSize :: CULong -> Int Source

isSigned :: CULong -> Bool Source

shiftL :: CULong -> Int -> CULong Source

unsafeShiftL :: CULong -> Int -> CULong Source

shiftR :: CULong -> Int -> CULong Source

unsafeShiftR :: CULong -> Int -> CULong Source

rotateL :: CULong -> Int -> CULong Source

rotateR :: CULong -> Int -> CULong Source

popCount :: CULong -> Int Source

Storable CULong
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CULong -> Int Source

alignment :: CULong -> Int Source

peekElemOff :: Ptr CULong -> Int -> IO CULong Source

pokeElemOff :: Ptr CULong -> Int -> CULong -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CULong Source

pokeByteOff :: Ptr b -> Int -> CULong -> IO () Source

peek :: Ptr CULong -> IO CULong Source

poke :: Ptr CULong -> CULong -> IO () Source

newtype CPtrdiff Source

Haskell type representing the C ptrdiff_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CPtrdiff Int64
Instances
Instances details
Bounded CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CPtrdiff Source

maxBound :: CPtrdiff Source

Enum CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

succ :: CPtrdiff -> CPtrdiff Source

pred :: CPtrdiff -> CPtrdiff Source

toEnum :: Int -> CPtrdiff Source

fromEnum :: CPtrdiff -> Int Source

enumFrom :: CPtrdiff -> [CPtrdiff] Source

enumFromThen :: CPtrdiff -> CPtrdiff -> [CPtrdiff] Source

enumFromTo :: CPtrdiff -> CPtrdiff -> [CPtrdiff] Source

enumFromThenTo :: CPtrdiff -> CPtrdiff -> CPtrdiff -> [CPtrdiff] Source

Eq CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CPtrdiff -> CPtrdiff -> Bool Source

(/=) :: CPtrdiff -> CPtrdiff -> Bool Source

Integral CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

quot :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

rem :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

div :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

mod :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

quotRem :: CPtrdiff -> CPtrdiff -> (CPtrdiff, CPtrdiff) Source

divMod :: CPtrdiff -> CPtrdiff -> (CPtrdiff, CPtrdiff) Source

toInteger :: CPtrdiff -> Integer Source

Num CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

(-) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

(*) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

negate :: CPtrdiff -> CPtrdiff Source

abs :: CPtrdiff -> CPtrdiff Source

signum :: CPtrdiff -> CPtrdiff Source

fromInteger :: Integer -> CPtrdiff Source

Ord CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

compare :: CPtrdiff -> CPtrdiff -> Ordering Source

(<) :: CPtrdiff -> CPtrdiff -> Bool Source

(<=) :: CPtrdiff -> CPtrdiff -> Bool Source

(>) :: CPtrdiff -> CPtrdiff -> Bool Source

(>=) :: CPtrdiff -> CPtrdiff -> Bool Source

max :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

min :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

Read CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CPtrdiff Source

readList :: ReadS [CPtrdiff] Source

readPrec :: ReadPrec CPtrdiff Source

readListPrec :: ReadPrec [CPtrdiff] Source

Real CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CPtrdiff -> Rational Source

Show CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CPtrdiff -> ShowS Source

show :: CPtrdiff -> String Source

showList :: [CPtrdiff] -> ShowS Source

FiniteBits CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CPtrdiff -> Int Source

countLeadingZeros :: CPtrdiff -> Int Source

countTrailingZeros :: CPtrdiff -> Int Source

Bits CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

(.|.) :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

xor :: CPtrdiff -> CPtrdiff -> CPtrdiff Source

complement :: CPtrdiff -> CPtrdiff Source

shift :: CPtrdiff -> Int -> CPtrdiff Source

rotate :: CPtrdiff -> Int -> CPtrdiff Source

zeroBits :: CPtrdiff Source

bit :: Int -> CPtrdiff Source

setBit :: CPtrdiff -> Int -> CPtrdiff Source

clearBit :: CPtrdiff -> Int -> CPtrdiff Source

complementBit :: CPtrdiff -> Int -> CPtrdiff Source

testBit :: CPtrdiff -> Int -> Bool Source

bitSizeMaybe :: CPtrdiff -> Maybe Int Source

bitSize :: CPtrdiff -> Int Source

isSigned :: CPtrdiff -> Bool Source

shiftL :: CPtrdiff -> Int -> CPtrdiff Source

unsafeShiftL :: CPtrdiff -> Int -> CPtrdiff Source

shiftR :: CPtrdiff -> Int -> CPtrdiff Source

unsafeShiftR :: CPtrdiff -> Int -> CPtrdiff Source

rotateL :: CPtrdiff -> Int -> CPtrdiff Source

rotateR :: CPtrdiff -> Int -> CPtrdiff Source

popCount :: CPtrdiff -> Int Source

Storable CPtrdiff
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CPtrdiff -> Int Source

alignment :: CPtrdiff -> Int Source

peekElemOff :: Ptr CPtrdiff -> Int -> IO CPtrdiff Source

pokeElemOff :: Ptr CPtrdiff -> Int -> CPtrdiff -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CPtrdiff Source

pokeByteOff :: Ptr b -> Int -> CPtrdiff -> IO () Source

peek :: Ptr CPtrdiff -> IO CPtrdiff Source

poke :: Ptr CPtrdiff -> CPtrdiff -> IO () Source

newtype CSize Source

Haskell type representing the C size_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CSize Word64
Instances
Instances details
Bounded CSize
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CSize Source

maxBound :: CSize Source

Enum CSize
Instance details

Defined in Foreign.C.Types

Methods

succ :: CSize -> CSize Source

pred :: CSize -> CSize Source

toEnum :: Int -> CSize Source

fromEnum :: CSize -> Int Source

enumFrom :: CSize -> [CSize] Source

enumFromThen :: CSize -> CSize -> [CSize] Source

enumFromTo :: CSize -> CSize -> [CSize] Source

enumFromThenTo :: CSize -> CSize -> CSize -> [CSize] Source

Eq CSize
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CSize -> CSize -> Bool Source

(/=) :: CSize -> CSize -> Bool Source

Integral CSize
Instance details

Defined in Foreign.C.Types

Methods

quot :: CSize -> CSize -> CSize Source

rem :: CSize -> CSize -> CSize Source

div :: CSize -> CSize -> CSize Source

mod :: CSize -> CSize -> CSize Source

quotRem :: CSize -> CSize -> (CSize, CSize) Source

divMod :: CSize -> CSize -> (CSize, CSize) Source

toInteger :: CSize -> Integer Source

Num CSize
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CSize -> CSize -> CSize Source

(-) :: CSize -> CSize -> CSize Source

(*) :: CSize -> CSize -> CSize Source

negate :: CSize -> CSize Source

abs :: CSize -> CSize Source

signum :: CSize -> CSize Source

fromInteger :: Integer -> CSize Source

Ord CSize
Instance details

Defined in Foreign.C.Types

Methods

compare :: CSize -> CSize -> Ordering Source

(<) :: CSize -> CSize -> Bool Source

(<=) :: CSize -> CSize -> Bool Source

(>) :: CSize -> CSize -> Bool Source

(>=) :: CSize -> CSize -> Bool Source

max :: CSize -> CSize -> CSize Source

min :: CSize -> CSize -> CSize Source

Read CSize
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSize Source

readList :: ReadS [CSize] Source

readPrec :: ReadPrec CSize Source

readListPrec :: ReadPrec [CSize] Source

Real CSize
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CSize -> Rational Source

Show CSize
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CSize -> ShowS Source

show :: CSize -> String Source

showList :: [CSize] -> ShowS Source

FiniteBits CSize
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CSize -> Int Source

countLeadingZeros :: CSize -> Int Source

countTrailingZeros :: CSize -> Int Source

Bits CSize
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CSize -> CSize -> CSize Source

(.|.) :: CSize -> CSize -> CSize Source

xor :: CSize -> CSize -> CSize Source

complement :: CSize -> CSize Source

shift :: CSize -> Int -> CSize Source

rotate :: CSize -> Int -> CSize Source

zeroBits :: CSize Source

bit :: Int -> CSize Source

setBit :: CSize -> Int -> CSize Source

clearBit :: CSize -> Int -> CSize Source

complementBit :: CSize -> Int -> CSize Source

testBit :: CSize -> Int -> Bool Source

bitSizeMaybe :: CSize -> Maybe Int Source

bitSize :: CSize -> Int Source

isSigned :: CSize -> Bool Source

shiftL :: CSize -> Int -> CSize Source

unsafeShiftL :: CSize -> Int -> CSize Source

shiftR :: CSize -> Int -> CSize Source

unsafeShiftR :: CSize -> Int -> CSize Source

rotateL :: CSize -> Int -> CSize Source

rotateR :: CSize -> Int -> CSize Source

popCount :: CSize -> Int Source

Storable CSize
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CSize -> Int Source

alignment :: CSize -> Int Source

peekElemOff :: Ptr CSize -> Int -> IO CSize Source

pokeElemOff :: Ptr CSize -> Int -> CSize -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CSize Source

pokeByteOff :: Ptr b -> Int -> CSize -> IO () Source

peek :: Ptr CSize -> IO CSize Source

poke :: Ptr CSize -> CSize -> IO () Source

newtype CWchar Source

Haskell type representing the C wchar_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CWchar Int32
Instances
Instances details
Bounded CWchar
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CWchar Source

maxBound :: CWchar Source

Enum CWchar
Instance details

Defined in Foreign.C.Types

Methods

succ :: CWchar -> CWchar Source

pred :: CWchar -> CWchar Source

toEnum :: Int -> CWchar Source

fromEnum :: CWchar -> Int Source

enumFrom :: CWchar -> [CWchar] Source

enumFromThen :: CWchar -> CWchar -> [CWchar] Source

enumFromTo :: CWchar -> CWchar -> [CWchar] Source

enumFromThenTo :: CWchar -> CWchar -> CWchar -> [CWchar] Source

Eq CWchar
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CWchar -> CWchar -> Bool Source

(/=) :: CWchar -> CWchar -> Bool Source

Integral CWchar
Instance details

Defined in Foreign.C.Types

Methods

quot :: CWchar -> CWchar -> CWchar Source

rem :: CWchar -> CWchar -> CWchar Source

div :: CWchar -> CWchar -> CWchar Source

mod :: CWchar -> CWchar -> CWchar Source

quotRem :: CWchar -> CWchar -> (CWchar, CWchar) Source

divMod :: CWchar -> CWchar -> (CWchar, CWchar) Source

toInteger :: CWchar -> Integer Source

Num CWchar
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CWchar -> CWchar -> CWchar Source

(-) :: CWchar -> CWchar -> CWchar Source

(*) :: CWchar -> CWchar -> CWchar Source

negate :: CWchar -> CWchar Source

abs :: CWchar -> CWchar Source

signum :: CWchar -> CWchar Source

fromInteger :: Integer -> CWchar Source

Ord CWchar
Instance details

Defined in Foreign.C.Types

Methods

compare :: CWchar -> CWchar -> Ordering Source

(<) :: CWchar -> CWchar -> Bool Source

(<=) :: CWchar -> CWchar -> Bool Source

(>) :: CWchar -> CWchar -> Bool Source

(>=) :: CWchar -> CWchar -> Bool Source

max :: CWchar -> CWchar -> CWchar Source

min :: CWchar -> CWchar -> CWchar Source

Read CWchar
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CWchar Source

readList :: ReadS [CWchar] Source

readPrec :: ReadPrec CWchar Source

readListPrec :: ReadPrec [CWchar] Source

Real CWchar
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CWchar -> Rational Source

Show CWchar
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CWchar -> ShowS Source

show :: CWchar -> String Source

showList :: [CWchar] -> ShowS Source

FiniteBits CWchar
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CWchar -> Int Source

countLeadingZeros :: CWchar -> Int Source

countTrailingZeros :: CWchar -> Int Source

Bits CWchar
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CWchar -> CWchar -> CWchar Source

(.|.) :: CWchar -> CWchar -> CWchar Source

xor :: CWchar -> CWchar -> CWchar Source

complement :: CWchar -> CWchar Source

shift :: CWchar -> Int -> CWchar Source

rotate :: CWchar -> Int -> CWchar Source

zeroBits :: CWchar Source

bit :: Int -> CWchar Source

setBit :: CWchar -> Int -> CWchar Source

clearBit :: CWchar -> Int -> CWchar Source

complementBit :: CWchar -> Int -> CWchar Source

testBit :: CWchar -> Int -> Bool Source

bitSizeMaybe :: CWchar -> Maybe Int Source

bitSize :: CWchar -> Int Source

isSigned :: CWchar -> Bool Source

shiftL :: CWchar -> Int -> CWchar Source

unsafeShiftL :: CWchar -> Int -> CWchar Source

shiftR :: CWchar -> Int -> CWchar Source

unsafeShiftR :: CWchar -> Int -> CWchar Source

rotateL :: CWchar -> Int -> CWchar Source

rotateR :: CWchar -> Int -> CWchar Source

popCount :: CWchar -> Int Source

Storable CWchar
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CWchar -> Int Source

alignment :: CWchar -> Int Source

peekElemOff :: Ptr CWchar -> Int -> IO CWchar Source

pokeElemOff :: Ptr CWchar -> Int -> CWchar -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CWchar Source

pokeByteOff :: Ptr b -> Int -> CWchar -> IO () Source

peek :: Ptr CWchar -> IO CWchar Source

poke :: Ptr CWchar -> CWchar -> IO () Source

newtype CSigAtomic Source

Haskell type representing the C sig_atomic_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CSigAtomic Int32
Instances
Instances details
Bounded CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CSigAtomic Source

maxBound :: CSigAtomic Source

Enum CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

succ :: CSigAtomic -> CSigAtomic Source

pred :: CSigAtomic -> CSigAtomic Source

toEnum :: Int -> CSigAtomic Source

fromEnum :: CSigAtomic -> Int Source

enumFrom :: CSigAtomic -> [CSigAtomic] Source

enumFromThen :: CSigAtomic -> CSigAtomic -> [CSigAtomic] Source

enumFromTo :: CSigAtomic -> CSigAtomic -> [CSigAtomic] Source

enumFromThenTo :: CSigAtomic -> CSigAtomic -> CSigAtomic -> [CSigAtomic] Source

Eq CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CSigAtomic -> CSigAtomic -> Bool Source

(/=) :: CSigAtomic -> CSigAtomic -> Bool Source

Integral CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

quot :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

rem :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

div :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

mod :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

quotRem :: CSigAtomic -> CSigAtomic -> (CSigAtomic, CSigAtomic) Source

divMod :: CSigAtomic -> CSigAtomic -> (CSigAtomic, CSigAtomic) Source

toInteger :: CSigAtomic -> Integer Source

Num CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

(-) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

(*) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

negate :: CSigAtomic -> CSigAtomic Source

abs :: CSigAtomic -> CSigAtomic Source

signum :: CSigAtomic -> CSigAtomic Source

fromInteger :: Integer -> CSigAtomic Source

Ord CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

compare :: CSigAtomic -> CSigAtomic -> Ordering Source

(<) :: CSigAtomic -> CSigAtomic -> Bool Source

(<=) :: CSigAtomic -> CSigAtomic -> Bool Source

(>) :: CSigAtomic -> CSigAtomic -> Bool Source

(>=) :: CSigAtomic -> CSigAtomic -> Bool Source

max :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

min :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

Read CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSigAtomic Source

readList :: ReadS [CSigAtomic] Source

readPrec :: ReadPrec CSigAtomic Source

readListPrec :: ReadPrec [CSigAtomic] Source

Real CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CSigAtomic -> Rational Source

Show CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CSigAtomic -> ShowS Source

show :: CSigAtomic -> String Source

showList :: [CSigAtomic] -> ShowS Source

FiniteBits CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CSigAtomic -> Int Source

countLeadingZeros :: CSigAtomic -> Int Source

countTrailingZeros :: CSigAtomic -> Int Source

Bits CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

(.|.) :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

xor :: CSigAtomic -> CSigAtomic -> CSigAtomic Source

complement :: CSigAtomic -> CSigAtomic Source

shift :: CSigAtomic -> Int -> CSigAtomic Source

rotate :: CSigAtomic -> Int -> CSigAtomic Source

zeroBits :: CSigAtomic Source

bit :: Int -> CSigAtomic Source

setBit :: CSigAtomic -> Int -> CSigAtomic Source

clearBit :: CSigAtomic -> Int -> CSigAtomic Source

complementBit :: CSigAtomic -> Int -> CSigAtomic Source

testBit :: CSigAtomic -> Int -> Bool Source

bitSizeMaybe :: CSigAtomic -> Maybe Int Source

bitSize :: CSigAtomic -> Int Source

isSigned :: CSigAtomic -> Bool Source

shiftL :: CSigAtomic -> Int -> CSigAtomic Source

unsafeShiftL :: CSigAtomic -> Int -> CSigAtomic Source

shiftR :: CSigAtomic -> Int -> CSigAtomic Source

unsafeShiftR :: CSigAtomic -> Int -> CSigAtomic Source

rotateL :: CSigAtomic -> Int -> CSigAtomic Source

rotateR :: CSigAtomic -> Int -> CSigAtomic Source

popCount :: CSigAtomic -> Int Source

Storable CSigAtomic
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CSigAtomic -> Int Source

alignment :: CSigAtomic -> Int Source

peekElemOff :: Ptr CSigAtomic -> Int -> IO CSigAtomic Source

pokeElemOff :: Ptr CSigAtomic -> Int -> CSigAtomic -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CSigAtomic Source

pokeByteOff :: Ptr b -> Int -> CSigAtomic -> IO () Source

peek :: Ptr CSigAtomic -> IO CSigAtomic Source

poke :: Ptr CSigAtomic -> CSigAtomic -> IO () Source

newtype CLLong Source

Haskell type representing the C long long type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CLLong Int64
Instances
Instances details
Bounded CLLong
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CLLong Source

maxBound :: CLLong Source

Enum CLLong
Instance details

Defined in Foreign.C.Types

Methods

succ :: CLLong -> CLLong Source

pred :: CLLong -> CLLong Source

toEnum :: Int -> CLLong Source

fromEnum :: CLLong -> Int Source

enumFrom :: CLLong -> [CLLong] Source

enumFromThen :: CLLong -> CLLong -> [CLLong] Source

enumFromTo :: CLLong -> CLLong -> [CLLong] Source

enumFromThenTo :: CLLong -> CLLong -> CLLong -> [CLLong] Source

Eq CLLong
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CLLong -> CLLong -> Bool Source

(/=) :: CLLong -> CLLong -> Bool Source

Integral CLLong
Instance details

Defined in Foreign.C.Types

Methods

quot :: CLLong -> CLLong -> CLLong Source

rem :: CLLong -> CLLong -> CLLong Source

div :: CLLong -> CLLong -> CLLong Source

mod :: CLLong -> CLLong -> CLLong Source

quotRem :: CLLong -> CLLong -> (CLLong, CLLong) Source

divMod :: CLLong -> CLLong -> (CLLong, CLLong) Source

toInteger :: CLLong -> Integer Source

Num CLLong
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CLLong -> CLLong -> CLLong Source

(-) :: CLLong -> CLLong -> CLLong Source

(*) :: CLLong -> CLLong -> CLLong Source

negate :: CLLong -> CLLong Source

abs :: CLLong -> CLLong Source

signum :: CLLong -> CLLong Source

fromInteger :: Integer -> CLLong Source

Ord CLLong
Instance details

Defined in Foreign.C.Types

Methods

compare :: CLLong -> CLLong -> Ordering Source

(<) :: CLLong -> CLLong -> Bool Source

(<=) :: CLLong -> CLLong -> Bool Source

(>) :: CLLong -> CLLong -> Bool Source

(>=) :: CLLong -> CLLong -> Bool Source

max :: CLLong -> CLLong -> CLLong Source

min :: CLLong -> CLLong -> CLLong Source

Read CLLong
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CLLong Source

readList :: ReadS [CLLong] Source

readPrec :: ReadPrec CLLong Source

readListPrec :: ReadPrec [CLLong] Source

Real CLLong
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CLLong -> Rational Source

Show CLLong
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CLLong -> ShowS Source

show :: CLLong -> String Source

showList :: [CLLong] -> ShowS Source

FiniteBits CLLong
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CLLong -> Int Source

countLeadingZeros :: CLLong -> Int Source

countTrailingZeros :: CLLong -> Int Source

Bits CLLong
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CLLong -> CLLong -> CLLong Source

(.|.) :: CLLong -> CLLong -> CLLong Source

xor :: CLLong -> CLLong -> CLLong Source

complement :: CLLong -> CLLong Source

shift :: CLLong -> Int -> CLLong Source

rotate :: CLLong -> Int -> CLLong Source

zeroBits :: CLLong Source

bit :: Int -> CLLong Source

setBit :: CLLong -> Int -> CLLong Source

clearBit :: CLLong -> Int -> CLLong Source

complementBit :: CLLong -> Int -> CLLong Source

testBit :: CLLong -> Int -> Bool Source

bitSizeMaybe :: CLLong -> Maybe Int Source

bitSize :: CLLong -> Int Source

isSigned :: CLLong -> Bool Source

shiftL :: CLLong -> Int -> CLLong Source

unsafeShiftL :: CLLong -> Int -> CLLong Source

shiftR :: CLLong -> Int -> CLLong Source

unsafeShiftR :: CLLong -> Int -> CLLong Source

rotateL :: CLLong -> Int -> CLLong Source

rotateR :: CLLong -> Int -> CLLong Source

popCount :: CLLong -> Int Source

Storable CLLong
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CLLong -> Int Source

alignment :: CLLong -> Int Source

peekElemOff :: Ptr CLLong -> Int -> IO CLLong Source

pokeElemOff :: Ptr CLLong -> Int -> CLLong -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CLLong Source

pokeByteOff :: Ptr b -> Int -> CLLong -> IO () Source

peek :: Ptr CLLong -> IO CLLong Source

poke :: Ptr CLLong -> CLLong -> IO () Source

newtype CULLong Source

Haskell type representing the C unsigned long long type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CULLong Word64
Instances
Instances details
Bounded CULLong
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CULLong Source

maxBound :: CULLong Source

Enum CULLong
Instance details

Defined in Foreign.C.Types

Methods

succ :: CULLong -> CULLong Source

pred :: CULLong -> CULLong Source

toEnum :: Int -> CULLong Source

fromEnum :: CULLong -> Int Source

enumFrom :: CULLong -> [CULLong] Source

enumFromThen :: CULLong -> CULLong -> [CULLong] Source

enumFromTo :: CULLong -> CULLong -> [CULLong] Source

enumFromThenTo :: CULLong -> CULLong -> CULLong -> [CULLong] Source

Eq CULLong
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CULLong -> CULLong -> Bool Source

(/=) :: CULLong -> CULLong -> Bool Source

Integral CULLong
Instance details

Defined in Foreign.C.Types

Methods

quot :: CULLong -> CULLong -> CULLong Source

rem :: CULLong -> CULLong -> CULLong Source

div :: CULLong -> CULLong -> CULLong Source

mod :: CULLong -> CULLong -> CULLong Source

quotRem :: CULLong -> CULLong -> (CULLong, CULLong) Source

divMod :: CULLong -> CULLong -> (CULLong, CULLong) Source

toInteger :: CULLong -> Integer Source

Num CULLong
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CULLong -> CULLong -> CULLong Source

(-) :: CULLong -> CULLong -> CULLong Source

(*) :: CULLong -> CULLong -> CULLong Source

negate :: CULLong -> CULLong Source

abs :: CULLong -> CULLong Source

signum :: CULLong -> CULLong Source

fromInteger :: Integer -> CULLong Source

Ord CULLong
Instance details

Defined in Foreign.C.Types

Methods

compare :: CULLong -> CULLong -> Ordering Source

(<) :: CULLong -> CULLong -> Bool Source

(<=) :: CULLong -> CULLong -> Bool Source

(>) :: CULLong -> CULLong -> Bool Source

(>=) :: CULLong -> CULLong -> Bool Source

max :: CULLong -> CULLong -> CULLong Source

min :: CULLong -> CULLong -> CULLong Source

Read CULLong
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CULLong Source

readList :: ReadS [CULLong] Source

readPrec :: ReadPrec CULLong Source

readListPrec :: ReadPrec [CULLong] Source

Real CULLong
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CULLong -> Rational Source

Show CULLong
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CULLong -> ShowS Source

show :: CULLong -> String Source

showList :: [CULLong] -> ShowS Source

FiniteBits CULLong
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CULLong -> Int Source

countLeadingZeros :: CULLong -> Int Source

countTrailingZeros :: CULLong -> Int Source

Bits CULLong
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CULLong -> CULLong -> CULLong Source

(.|.) :: CULLong -> CULLong -> CULLong Source

xor :: CULLong -> CULLong -> CULLong Source

complement :: CULLong -> CULLong Source

shift :: CULLong -> Int -> CULLong Source

rotate :: CULLong -> Int -> CULLong Source

zeroBits :: CULLong Source

bit :: Int -> CULLong Source

setBit :: CULLong -> Int -> CULLong Source

clearBit :: CULLong -> Int -> CULLong Source

complementBit :: CULLong -> Int -> CULLong Source

testBit :: CULLong -> Int -> Bool Source

bitSizeMaybe :: CULLong -> Maybe Int Source

bitSize :: CULLong -> Int Source

isSigned :: CULLong -> Bool Source

shiftL :: CULLong -> Int -> CULLong Source

unsafeShiftL :: CULLong -> Int -> CULLong Source

shiftR :: CULLong -> Int -> CULLong Source

unsafeShiftR :: CULLong -> Int -> CULLong Source

rotateL :: CULLong -> Int -> CULLong Source

rotateR :: CULLong -> Int -> CULLong Source

popCount :: CULLong -> Int Source

Storable CULLong
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CULLong -> Int Source

alignment :: CULLong -> Int Source

peekElemOff :: Ptr CULLong -> Int -> IO CULLong Source

pokeElemOff :: Ptr CULLong -> Int -> CULLong -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CULLong Source

pokeByteOff :: Ptr b -> Int -> CULLong -> IO () Source

peek :: Ptr CULLong -> IO CULLong Source

poke :: Ptr CULLong -> CULLong -> IO () Source

newtype CBool Source

Haskell type representing the C bool type. (The concrete types of Foreign.C.Types are platform-specific.)

Since: base-4.10.0.0

Constructors

CBool Word8
Instances
Instances details
Bounded CBool
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CBool Source

maxBound :: CBool Source

Enum CBool
Instance details

Defined in Foreign.C.Types

Methods

succ :: CBool -> CBool Source

pred :: CBool -> CBool Source

toEnum :: Int -> CBool Source

fromEnum :: CBool -> Int Source

enumFrom :: CBool -> [CBool] Source

enumFromThen :: CBool -> CBool -> [CBool] Source

enumFromTo :: CBool -> CBool -> [CBool] Source

enumFromThenTo :: CBool -> CBool -> CBool -> [CBool] Source

Eq CBool
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CBool -> CBool -> Bool Source

(/=) :: CBool -> CBool -> Bool Source

Integral CBool
Instance details

Defined in Foreign.C.Types

Methods

quot :: CBool -> CBool -> CBool Source

rem :: CBool -> CBool -> CBool Source

div :: CBool -> CBool -> CBool Source

mod :: CBool -> CBool -> CBool Source

quotRem :: CBool -> CBool -> (CBool, CBool) Source

divMod :: CBool -> CBool -> (CBool, CBool) Source

toInteger :: CBool -> Integer Source

Num CBool
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CBool -> CBool -> CBool Source

(-) :: CBool -> CBool -> CBool Source

(*) :: CBool -> CBool -> CBool Source

negate :: CBool -> CBool Source

abs :: CBool -> CBool Source

signum :: CBool -> CBool Source

fromInteger :: Integer -> CBool Source

Ord CBool
Instance details

Defined in Foreign.C.Types

Methods

compare :: CBool -> CBool -> Ordering Source

(<) :: CBool -> CBool -> Bool Source

(<=) :: CBool -> CBool -> Bool Source

(>) :: CBool -> CBool -> Bool Source

(>=) :: CBool -> CBool -> Bool Source

max :: CBool -> CBool -> CBool Source

min :: CBool -> CBool -> CBool Source

Read CBool
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CBool Source

readList :: ReadS [CBool] Source

readPrec :: ReadPrec CBool Source

readListPrec :: ReadPrec [CBool] Source

Real CBool
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CBool -> Rational Source

Show CBool
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CBool -> ShowS Source

show :: CBool -> String Source

showList :: [CBool] -> ShowS Source

FiniteBits CBool
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CBool -> Int Source

countLeadingZeros :: CBool -> Int Source

countTrailingZeros :: CBool -> Int Source

Bits CBool
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CBool -> CBool -> CBool Source

(.|.) :: CBool -> CBool -> CBool Source

xor :: CBool -> CBool -> CBool Source

complement :: CBool -> CBool Source

shift :: CBool -> Int -> CBool Source

rotate :: CBool -> Int -> CBool Source

zeroBits :: CBool Source

bit :: Int -> CBool Source

setBit :: CBool -> Int -> CBool Source

clearBit :: CBool -> Int -> CBool Source

complementBit :: CBool -> Int -> CBool Source

testBit :: CBool -> Int -> Bool Source

bitSizeMaybe :: CBool -> Maybe Int Source

bitSize :: CBool -> Int Source

isSigned :: CBool -> Bool Source

shiftL :: CBool -> Int -> CBool Source

unsafeShiftL :: CBool -> Int -> CBool Source

shiftR :: CBool -> Int -> CBool Source

unsafeShiftR :: CBool -> Int -> CBool Source

rotateL :: CBool -> Int -> CBool Source

rotateR :: CBool -> Int -> CBool Source

popCount :: CBool -> Int Source

Storable CBool
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CBool -> Int Source

alignment :: CBool -> Int Source

peekElemOff :: Ptr CBool -> Int -> IO CBool Source

pokeElemOff :: Ptr CBool -> Int -> CBool -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CBool Source

pokeByteOff :: Ptr b -> Int -> CBool -> IO () Source

peek :: Ptr CBool -> IO CBool Source

poke :: Ptr CBool -> CBool -> IO () Source

newtype CIntPtr Source

Constructors

CIntPtr Int64
Instances
Instances details
Bounded CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CIntPtr Source

maxBound :: CIntPtr Source

Enum CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

succ :: CIntPtr -> CIntPtr Source

pred :: CIntPtr -> CIntPtr Source

toEnum :: Int -> CIntPtr Source

fromEnum :: CIntPtr -> Int Source

enumFrom :: CIntPtr -> [CIntPtr] Source

enumFromThen :: CIntPtr -> CIntPtr -> [CIntPtr] Source

enumFromTo :: CIntPtr -> CIntPtr -> [CIntPtr] Source

enumFromThenTo :: CIntPtr -> CIntPtr -> CIntPtr -> [CIntPtr] Source

Eq CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CIntPtr -> CIntPtr -> Bool Source

(/=) :: CIntPtr -> CIntPtr -> Bool Source

Integral CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

quot :: CIntPtr -> CIntPtr -> CIntPtr Source

rem :: CIntPtr -> CIntPtr -> CIntPtr Source

div :: CIntPtr -> CIntPtr -> CIntPtr Source

mod :: CIntPtr -> CIntPtr -> CIntPtr Source

quotRem :: CIntPtr -> CIntPtr -> (CIntPtr, CIntPtr) Source

divMod :: CIntPtr -> CIntPtr -> (CIntPtr, CIntPtr) Source

toInteger :: CIntPtr -> Integer Source

Num CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CIntPtr -> CIntPtr -> CIntPtr Source

(-) :: CIntPtr -> CIntPtr -> CIntPtr Source

(*) :: CIntPtr -> CIntPtr -> CIntPtr Source

negate :: CIntPtr -> CIntPtr Source

abs :: CIntPtr -> CIntPtr Source

signum :: CIntPtr -> CIntPtr Source

fromInteger :: Integer -> CIntPtr Source

Ord CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

compare :: CIntPtr -> CIntPtr -> Ordering Source

(<) :: CIntPtr -> CIntPtr -> Bool Source

(<=) :: CIntPtr -> CIntPtr -> Bool Source

(>) :: CIntPtr -> CIntPtr -> Bool Source

(>=) :: CIntPtr -> CIntPtr -> Bool Source

max :: CIntPtr -> CIntPtr -> CIntPtr Source

min :: CIntPtr -> CIntPtr -> CIntPtr Source

Read CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CIntPtr Source

readList :: ReadS [CIntPtr] Source

readPrec :: ReadPrec CIntPtr Source

readListPrec :: ReadPrec [CIntPtr] Source

Real CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CIntPtr -> Rational Source

Show CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CIntPtr -> ShowS Source

show :: CIntPtr -> String Source

showList :: [CIntPtr] -> ShowS Source

FiniteBits CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CIntPtr -> Int Source

countLeadingZeros :: CIntPtr -> Int Source

countTrailingZeros :: CIntPtr -> Int Source

Bits CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CIntPtr -> CIntPtr -> CIntPtr Source

(.|.) :: CIntPtr -> CIntPtr -> CIntPtr Source

xor :: CIntPtr -> CIntPtr -> CIntPtr Source

complement :: CIntPtr -> CIntPtr Source

shift :: CIntPtr -> Int -> CIntPtr Source

rotate :: CIntPtr -> Int -> CIntPtr Source

zeroBits :: CIntPtr Source

bit :: Int -> CIntPtr Source

setBit :: CIntPtr -> Int -> CIntPtr Source

clearBit :: CIntPtr -> Int -> CIntPtr Source

complementBit :: CIntPtr -> Int -> CIntPtr Source

testBit :: CIntPtr -> Int -> Bool Source

bitSizeMaybe :: CIntPtr -> Maybe Int Source

bitSize :: CIntPtr -> Int Source

isSigned :: CIntPtr -> Bool Source

shiftL :: CIntPtr -> Int -> CIntPtr Source

unsafeShiftL :: CIntPtr -> Int -> CIntPtr Source

shiftR :: CIntPtr -> Int -> CIntPtr Source

unsafeShiftR :: CIntPtr -> Int -> CIntPtr Source

rotateL :: CIntPtr -> Int -> CIntPtr Source

rotateR :: CIntPtr -> Int -> CIntPtr Source

popCount :: CIntPtr -> Int Source

Storable CIntPtr
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CIntPtr -> Int Source

alignment :: CIntPtr -> Int Source

peekElemOff :: Ptr CIntPtr -> Int -> IO CIntPtr Source

pokeElemOff :: Ptr CIntPtr -> Int -> CIntPtr -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CIntPtr Source

pokeByteOff :: Ptr b -> Int -> CIntPtr -> IO () Source

peek :: Ptr CIntPtr -> IO CIntPtr Source

poke :: Ptr CIntPtr -> CIntPtr -> IO () Source

newtype CUIntPtr Source

Constructors

CUIntPtr Word64
Instances
Instances details
Bounded CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CUIntPtr Source

maxBound :: CUIntPtr Source

Enum CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUIntPtr -> CUIntPtr Source

pred :: CUIntPtr -> CUIntPtr Source

toEnum :: Int -> CUIntPtr Source

fromEnum :: CUIntPtr -> Int Source

enumFrom :: CUIntPtr -> [CUIntPtr] Source

enumFromThen :: CUIntPtr -> CUIntPtr -> [CUIntPtr] Source

enumFromTo :: CUIntPtr -> CUIntPtr -> [CUIntPtr] Source

enumFromThenTo :: CUIntPtr -> CUIntPtr -> CUIntPtr -> [CUIntPtr] Source

Eq CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUIntPtr -> CUIntPtr -> Bool Source

(/=) :: CUIntPtr -> CUIntPtr -> Bool Source

Integral CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

quot :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

rem :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

div :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

mod :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

quotRem :: CUIntPtr -> CUIntPtr -> (CUIntPtr, CUIntPtr) Source

divMod :: CUIntPtr -> CUIntPtr -> (CUIntPtr, CUIntPtr) Source

toInteger :: CUIntPtr -> Integer Source

Num CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

(-) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

(*) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

negate :: CUIntPtr -> CUIntPtr Source

abs :: CUIntPtr -> CUIntPtr Source

signum :: CUIntPtr -> CUIntPtr Source

fromInteger :: Integer -> CUIntPtr Source

Ord CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUIntPtr -> CUIntPtr -> Ordering Source

(<) :: CUIntPtr -> CUIntPtr -> Bool Source

(<=) :: CUIntPtr -> CUIntPtr -> Bool Source

(>) :: CUIntPtr -> CUIntPtr -> Bool Source

(>=) :: CUIntPtr -> CUIntPtr -> Bool Source

max :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

min :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

Read CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUIntPtr Source

readList :: ReadS [CUIntPtr] Source

readPrec :: ReadPrec CUIntPtr Source

readListPrec :: ReadPrec [CUIntPtr] Source

Real CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUIntPtr -> Rational Source

Show CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUIntPtr -> ShowS Source

show :: CUIntPtr -> String Source

showList :: [CUIntPtr] -> ShowS Source

FiniteBits CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CUIntPtr -> Int Source

countLeadingZeros :: CUIntPtr -> Int Source

countTrailingZeros :: CUIntPtr -> Int Source

Bits CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

(.|.) :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

xor :: CUIntPtr -> CUIntPtr -> CUIntPtr Source

complement :: CUIntPtr -> CUIntPtr Source

shift :: CUIntPtr -> Int -> CUIntPtr Source

rotate :: CUIntPtr -> Int -> CUIntPtr Source

zeroBits :: CUIntPtr Source

bit :: Int -> CUIntPtr Source

setBit :: CUIntPtr -> Int -> CUIntPtr Source

clearBit :: CUIntPtr -> Int -> CUIntPtr Source

complementBit :: CUIntPtr -> Int -> CUIntPtr Source

testBit :: CUIntPtr -> Int -> Bool Source

bitSizeMaybe :: CUIntPtr -> Maybe Int Source

bitSize :: CUIntPtr -> Int Source

isSigned :: CUIntPtr -> Bool Source

shiftL :: CUIntPtr -> Int -> CUIntPtr Source

unsafeShiftL :: CUIntPtr -> Int -> CUIntPtr Source

shiftR :: CUIntPtr -> Int -> CUIntPtr Source

unsafeShiftR :: CUIntPtr -> Int -> CUIntPtr Source

rotateL :: CUIntPtr -> Int -> CUIntPtr Source

rotateR :: CUIntPtr -> Int -> CUIntPtr Source

popCount :: CUIntPtr -> Int Source

Storable CUIntPtr
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUIntPtr -> Int Source

alignment :: CUIntPtr -> Int Source

peekElemOff :: Ptr CUIntPtr -> Int -> IO CUIntPtr Source

pokeElemOff :: Ptr CUIntPtr -> Int -> CUIntPtr -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUIntPtr Source

pokeByteOff :: Ptr b -> Int -> CUIntPtr -> IO () Source

peek :: Ptr CUIntPtr -> IO CUIntPtr Source

poke :: Ptr CUIntPtr -> CUIntPtr -> IO () Source

newtype CIntMax Source

Constructors

CIntMax Int64
Instances
Instances details
Bounded CIntMax
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CIntMax Source

maxBound :: CIntMax Source

Enum CIntMax
Instance details

Defined in Foreign.C.Types

Methods

succ :: CIntMax -> CIntMax Source

pred :: CIntMax -> CIntMax Source

toEnum :: Int -> CIntMax Source

fromEnum :: CIntMax -> Int Source

enumFrom :: CIntMax -> [CIntMax] Source

enumFromThen :: CIntMax -> CIntMax -> [CIntMax] Source

enumFromTo :: CIntMax -> CIntMax -> [CIntMax] Source

enumFromThenTo :: CIntMax -> CIntMax -> CIntMax -> [CIntMax] Source

Eq CIntMax
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CIntMax -> CIntMax -> Bool Source

(/=) :: CIntMax -> CIntMax -> Bool Source

Integral CIntMax
Instance details

Defined in Foreign.C.Types

Methods

quot :: CIntMax -> CIntMax -> CIntMax Source

rem :: CIntMax -> CIntMax -> CIntMax Source

div :: CIntMax -> CIntMax -> CIntMax Source

mod :: CIntMax -> CIntMax -> CIntMax Source

quotRem :: CIntMax -> CIntMax -> (CIntMax, CIntMax) Source

divMod :: CIntMax -> CIntMax -> (CIntMax, CIntMax) Source

toInteger :: CIntMax -> Integer Source

Num CIntMax
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CIntMax -> CIntMax -> CIntMax Source

(-) :: CIntMax -> CIntMax -> CIntMax Source

(*) :: CIntMax -> CIntMax -> CIntMax Source

negate :: CIntMax -> CIntMax Source

abs :: CIntMax -> CIntMax Source

signum :: CIntMax -> CIntMax Source

fromInteger :: Integer -> CIntMax Source

Ord CIntMax
Instance details

Defined in Foreign.C.Types

Methods

compare :: CIntMax -> CIntMax -> Ordering Source

(<) :: CIntMax -> CIntMax -> Bool Source

(<=) :: CIntMax -> CIntMax -> Bool Source

(>) :: CIntMax -> CIntMax -> Bool Source

(>=) :: CIntMax -> CIntMax -> Bool Source

max :: CIntMax -> CIntMax -> CIntMax Source

min :: CIntMax -> CIntMax -> CIntMax Source

Read CIntMax
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CIntMax Source

readList :: ReadS [CIntMax] Source

readPrec :: ReadPrec CIntMax Source

readListPrec :: ReadPrec [CIntMax] Source

Real CIntMax
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CIntMax -> Rational Source

Show CIntMax
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CIntMax -> ShowS Source

show :: CIntMax -> String Source

showList :: [CIntMax] -> ShowS Source

FiniteBits CIntMax
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CIntMax -> Int Source

countLeadingZeros :: CIntMax -> Int Source

countTrailingZeros :: CIntMax -> Int Source

Bits CIntMax
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CIntMax -> CIntMax -> CIntMax Source

(.|.) :: CIntMax -> CIntMax -> CIntMax Source

xor :: CIntMax -> CIntMax -> CIntMax Source

complement :: CIntMax -> CIntMax Source

shift :: CIntMax -> Int -> CIntMax Source

rotate :: CIntMax -> Int -> CIntMax Source

zeroBits :: CIntMax Source

bit :: Int -> CIntMax Source

setBit :: CIntMax -> Int -> CIntMax Source

clearBit :: CIntMax -> Int -> CIntMax Source

complementBit :: CIntMax -> Int -> CIntMax Source

testBit :: CIntMax -> Int -> Bool Source

bitSizeMaybe :: CIntMax -> Maybe Int Source

bitSize :: CIntMax -> Int Source

isSigned :: CIntMax -> Bool Source

shiftL :: CIntMax -> Int -> CIntMax Source

unsafeShiftL :: CIntMax -> Int -> CIntMax Source

shiftR :: CIntMax -> Int -> CIntMax Source

unsafeShiftR :: CIntMax -> Int -> CIntMax Source

rotateL :: CIntMax -> Int -> CIntMax Source

rotateR :: CIntMax -> Int -> CIntMax Source

popCount :: CIntMax -> Int Source

Storable CIntMax
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CIntMax -> Int Source

alignment :: CIntMax -> Int Source

peekElemOff :: Ptr CIntMax -> Int -> IO CIntMax Source

pokeElemOff :: Ptr CIntMax -> Int -> CIntMax -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CIntMax Source

pokeByteOff :: Ptr b -> Int -> CIntMax -> IO () Source

peek :: Ptr CIntMax -> IO CIntMax Source

poke :: Ptr CIntMax -> CIntMax -> IO () Source

newtype CUIntMax Source

Constructors

CUIntMax Word64
Instances
Instances details
Bounded CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

minBound :: CUIntMax Source

maxBound :: CUIntMax Source

Enum CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUIntMax -> CUIntMax Source

pred :: CUIntMax -> CUIntMax Source

toEnum :: Int -> CUIntMax Source

fromEnum :: CUIntMax -> Int Source

enumFrom :: CUIntMax -> [CUIntMax] Source

enumFromThen :: CUIntMax -> CUIntMax -> [CUIntMax] Source

enumFromTo :: CUIntMax -> CUIntMax -> [CUIntMax] Source

enumFromThenTo :: CUIntMax -> CUIntMax -> CUIntMax -> [CUIntMax] Source

Eq CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUIntMax -> CUIntMax -> Bool Source

(/=) :: CUIntMax -> CUIntMax -> Bool Source

Integral CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

quot :: CUIntMax -> CUIntMax -> CUIntMax Source

rem :: CUIntMax -> CUIntMax -> CUIntMax Source

div :: CUIntMax -> CUIntMax -> CUIntMax Source

mod :: CUIntMax -> CUIntMax -> CUIntMax Source

quotRem :: CUIntMax -> CUIntMax -> (CUIntMax, CUIntMax) Source

divMod :: CUIntMax -> CUIntMax -> (CUIntMax, CUIntMax) Source

toInteger :: CUIntMax -> Integer Source

Num CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUIntMax -> CUIntMax -> CUIntMax Source

(-) :: CUIntMax -> CUIntMax -> CUIntMax Source

(*) :: CUIntMax -> CUIntMax -> CUIntMax Source

negate :: CUIntMax -> CUIntMax Source

abs :: CUIntMax -> CUIntMax Source

signum :: CUIntMax -> CUIntMax Source

fromInteger :: Integer -> CUIntMax Source

Ord CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUIntMax -> CUIntMax -> Ordering Source

(<) :: CUIntMax -> CUIntMax -> Bool Source

(<=) :: CUIntMax -> CUIntMax -> Bool Source

(>) :: CUIntMax -> CUIntMax -> Bool Source

(>=) :: CUIntMax -> CUIntMax -> Bool Source

max :: CUIntMax -> CUIntMax -> CUIntMax Source

min :: CUIntMax -> CUIntMax -> CUIntMax Source

Read CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUIntMax Source

readList :: ReadS [CUIntMax] Source

readPrec :: ReadPrec CUIntMax Source

readListPrec :: ReadPrec [CUIntMax] Source

Real CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUIntMax -> Rational Source

Show CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUIntMax -> ShowS Source

show :: CUIntMax -> String Source

showList :: [CUIntMax] -> ShowS Source

FiniteBits CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

finiteBitSize :: CUIntMax -> Int Source

countLeadingZeros :: CUIntMax -> Int Source

countTrailingZeros :: CUIntMax -> Int Source

Bits CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

(.&.) :: CUIntMax -> CUIntMax -> CUIntMax Source

(.|.) :: CUIntMax -> CUIntMax -> CUIntMax Source

xor :: CUIntMax -> CUIntMax -> CUIntMax Source

complement :: CUIntMax -> CUIntMax Source

shift :: CUIntMax -> Int -> CUIntMax Source

rotate :: CUIntMax -> Int -> CUIntMax Source

zeroBits :: CUIntMax Source

bit :: Int -> CUIntMax Source

setBit :: CUIntMax -> Int -> CUIntMax Source

clearBit :: CUIntMax -> Int -> CUIntMax Source

complementBit :: CUIntMax -> Int -> CUIntMax Source

testBit :: CUIntMax -> Int -> Bool Source

bitSizeMaybe :: CUIntMax -> Maybe Int Source

bitSize :: CUIntMax -> Int Source

isSigned :: CUIntMax -> Bool Source

shiftL :: CUIntMax -> Int -> CUIntMax Source

unsafeShiftL :: CUIntMax -> Int -> CUIntMax Source

shiftR :: CUIntMax -> Int -> CUIntMax Source

unsafeShiftR :: CUIntMax -> Int -> CUIntMax Source

rotateL :: CUIntMax -> Int -> CUIntMax Source

rotateR :: CUIntMax -> Int -> CUIntMax Source

popCount :: CUIntMax -> Int Source

Storable CUIntMax
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUIntMax -> Int Source

alignment :: CUIntMax -> Int Source

peekElemOff :: Ptr CUIntMax -> Int -> IO CUIntMax Source

pokeElemOff :: Ptr CUIntMax -> Int -> CUIntMax -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUIntMax Source

pokeByteOff :: Ptr b -> Int -> CUIntMax -> IO () Source

peek :: Ptr CUIntMax -> IO CUIntMax Source

poke :: Ptr CUIntMax -> CUIntMax -> IO () Source

Numeric types

These types are represented as newtypes of basic foreign types, and are instances of Eq, Ord, Num, Read, Show, Enum, Typeable and Storable.

newtype CClock Source

Haskell type representing the C clock_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CClock Int64
Instances
Instances details
Enum CClock
Instance details

Defined in Foreign.C.Types

Methods

succ :: CClock -> CClock Source

pred :: CClock -> CClock Source

toEnum :: Int -> CClock Source

fromEnum :: CClock -> Int Source

enumFrom :: CClock -> [CClock] Source

enumFromThen :: CClock -> CClock -> [CClock] Source

enumFromTo :: CClock -> CClock -> [CClock] Source

enumFromThenTo :: CClock -> CClock -> CClock -> [CClock] Source

Eq CClock
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CClock -> CClock -> Bool Source

(/=) :: CClock -> CClock -> Bool Source

Num CClock
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CClock -> CClock -> CClock Source

(-) :: CClock -> CClock -> CClock Source

(*) :: CClock -> CClock -> CClock Source

negate :: CClock -> CClock Source

abs :: CClock -> CClock Source

signum :: CClock -> CClock Source

fromInteger :: Integer -> CClock Source

Ord CClock
Instance details

Defined in Foreign.C.Types

Methods

compare :: CClock -> CClock -> Ordering Source

(<) :: CClock -> CClock -> Bool Source

(<=) :: CClock -> CClock -> Bool Source

(>) :: CClock -> CClock -> Bool Source

(>=) :: CClock -> CClock -> Bool Source

max :: CClock -> CClock -> CClock Source

min :: CClock -> CClock -> CClock Source

Read CClock
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CClock Source

readList :: ReadS [CClock] Source

readPrec :: ReadPrec CClock Source

readListPrec :: ReadPrec [CClock] Source

Real CClock
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CClock -> Rational Source

Show CClock
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CClock -> ShowS Source

show :: CClock -> String Source

showList :: [CClock] -> ShowS Source

Storable CClock
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CClock -> Int Source

alignment :: CClock -> Int Source

peekElemOff :: Ptr CClock -> Int -> IO CClock Source

pokeElemOff :: Ptr CClock -> Int -> CClock -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CClock Source

pokeByteOff :: Ptr b -> Int -> CClock -> IO () Source

peek :: Ptr CClock -> IO CClock Source

poke :: Ptr CClock -> CClock -> IO () Source

newtype CTime Source

Haskell type representing the C time_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CTime Int64
Instances
Instances details
Enum CTime
Instance details

Defined in Foreign.C.Types

Methods

succ :: CTime -> CTime Source

pred :: CTime -> CTime Source

toEnum :: Int -> CTime Source

fromEnum :: CTime -> Int Source

enumFrom :: CTime -> [CTime] Source

enumFromThen :: CTime -> CTime -> [CTime] Source

enumFromTo :: CTime -> CTime -> [CTime] Source

enumFromThenTo :: CTime -> CTime -> CTime -> [CTime] Source

Eq CTime
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CTime -> CTime -> Bool Source

(/=) :: CTime -> CTime -> Bool Source

Num CTime
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CTime -> CTime -> CTime Source

(-) :: CTime -> CTime -> CTime Source

(*) :: CTime -> CTime -> CTime Source

negate :: CTime -> CTime Source

abs :: CTime -> CTime Source

signum :: CTime -> CTime Source

fromInteger :: Integer -> CTime Source

Ord CTime
Instance details

Defined in Foreign.C.Types

Methods

compare :: CTime -> CTime -> Ordering Source

(<) :: CTime -> CTime -> Bool Source

(<=) :: CTime -> CTime -> Bool Source

(>) :: CTime -> CTime -> Bool Source

(>=) :: CTime -> CTime -> Bool Source

max :: CTime -> CTime -> CTime Source

min :: CTime -> CTime -> CTime Source

Read CTime
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CTime Source

readList :: ReadS [CTime] Source

readPrec :: ReadPrec CTime Source

readListPrec :: ReadPrec [CTime] Source

Real CTime
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CTime -> Rational Source

Show CTime
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CTime -> ShowS Source

show :: CTime -> String Source

showList :: [CTime] -> ShowS Source

Storable CTime
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CTime -> Int Source

alignment :: CTime -> Int Source

peekElemOff :: Ptr CTime -> Int -> IO CTime Source

pokeElemOff :: Ptr CTime -> Int -> CTime -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CTime Source

pokeByteOff :: Ptr b -> Int -> CTime -> IO () Source

peek :: Ptr CTime -> IO CTime Source

poke :: Ptr CTime -> CTime -> IO () Source

newtype CUSeconds Source

Haskell type representing the C useconds_t type. (The concrete types of Foreign.C.Types are platform-specific.)

Since: base-4.4.0.0

Constructors

CUSeconds Word32
Instances
Instances details
Enum CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

succ :: CUSeconds -> CUSeconds Source

pred :: CUSeconds -> CUSeconds Source

toEnum :: Int -> CUSeconds Source

fromEnum :: CUSeconds -> Int Source

enumFrom :: CUSeconds -> [CUSeconds] Source

enumFromThen :: CUSeconds -> CUSeconds -> [CUSeconds] Source

enumFromTo :: CUSeconds -> CUSeconds -> [CUSeconds] Source

enumFromThenTo :: CUSeconds -> CUSeconds -> CUSeconds -> [CUSeconds] Source

Eq CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CUSeconds -> CUSeconds -> Bool Source

(/=) :: CUSeconds -> CUSeconds -> Bool Source

Num CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CUSeconds -> CUSeconds -> CUSeconds Source

(-) :: CUSeconds -> CUSeconds -> CUSeconds Source

(*) :: CUSeconds -> CUSeconds -> CUSeconds Source

negate :: CUSeconds -> CUSeconds Source

abs :: CUSeconds -> CUSeconds Source

signum :: CUSeconds -> CUSeconds Source

fromInteger :: Integer -> CUSeconds Source

Ord CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

compare :: CUSeconds -> CUSeconds -> Ordering Source

(<) :: CUSeconds -> CUSeconds -> Bool Source

(<=) :: CUSeconds -> CUSeconds -> Bool Source

(>) :: CUSeconds -> CUSeconds -> Bool Source

(>=) :: CUSeconds -> CUSeconds -> Bool Source

max :: CUSeconds -> CUSeconds -> CUSeconds Source

min :: CUSeconds -> CUSeconds -> CUSeconds Source

Read CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUSeconds Source

readList :: ReadS [CUSeconds] Source

readPrec :: ReadPrec CUSeconds Source

readListPrec :: ReadPrec [CUSeconds] Source

Real CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CUSeconds -> Rational Source

Show CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CUSeconds -> ShowS Source

show :: CUSeconds -> String Source

showList :: [CUSeconds] -> ShowS Source

Storable CUSeconds
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CUSeconds -> Int Source

alignment :: CUSeconds -> Int Source

peekElemOff :: Ptr CUSeconds -> Int -> IO CUSeconds Source

pokeElemOff :: Ptr CUSeconds -> Int -> CUSeconds -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CUSeconds Source

pokeByteOff :: Ptr b -> Int -> CUSeconds -> IO () Source

peek :: Ptr CUSeconds -> IO CUSeconds Source

poke :: Ptr CUSeconds -> CUSeconds -> IO () Source

newtype CSUSeconds Source

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
Instances details
Enum CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

succ :: CSUSeconds -> CSUSeconds Source

pred :: CSUSeconds -> CSUSeconds Source

toEnum :: Int -> CSUSeconds Source

fromEnum :: CSUSeconds -> Int Source

enumFrom :: CSUSeconds -> [CSUSeconds] Source

enumFromThen :: CSUSeconds -> CSUSeconds -> [CSUSeconds] Source

enumFromTo :: CSUSeconds -> CSUSeconds -> [CSUSeconds] Source

enumFromThenTo :: CSUSeconds -> CSUSeconds -> CSUSeconds -> [CSUSeconds] Source

Eq CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CSUSeconds -> CSUSeconds -> Bool Source

(/=) :: CSUSeconds -> CSUSeconds -> Bool Source

Num CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CSUSeconds -> CSUSeconds -> CSUSeconds Source

(-) :: CSUSeconds -> CSUSeconds -> CSUSeconds Source

(*) :: CSUSeconds -> CSUSeconds -> CSUSeconds Source

negate :: CSUSeconds -> CSUSeconds Source

abs :: CSUSeconds -> CSUSeconds Source

signum :: CSUSeconds -> CSUSeconds Source

fromInteger :: Integer -> CSUSeconds Source

Ord CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

compare :: CSUSeconds -> CSUSeconds -> Ordering Source

(<) :: CSUSeconds -> CSUSeconds -> Bool Source

(<=) :: CSUSeconds -> CSUSeconds -> Bool Source

(>) :: CSUSeconds -> CSUSeconds -> Bool Source

(>=) :: CSUSeconds -> CSUSeconds -> Bool Source

max :: CSUSeconds -> CSUSeconds -> CSUSeconds Source

min :: CSUSeconds -> CSUSeconds -> CSUSeconds Source

Read CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSUSeconds Source

readList :: ReadS [CSUSeconds] Source

readPrec :: ReadPrec CSUSeconds Source

readListPrec :: ReadPrec [CSUSeconds] Source

Real CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CSUSeconds -> Rational Source

Show CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CSUSeconds -> ShowS Source

show :: CSUSeconds -> String Source

showList :: [CSUSeconds] -> ShowS Source

Storable CSUSeconds
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CSUSeconds -> Int Source

alignment :: CSUSeconds -> Int Source

peekElemOff :: Ptr CSUSeconds -> Int -> IO CSUSeconds Source

pokeElemOff :: Ptr CSUSeconds -> Int -> CSUSeconds -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CSUSeconds Source

pokeByteOff :: Ptr b -> Int -> CSUSeconds -> IO () Source

peek :: Ptr CSUSeconds -> IO CSUSeconds Source

poke :: Ptr CSUSeconds -> CSUSeconds -> IO () Source

To convert CTime to UTCTime, use the following:

\t -> posixSecondsToUTCTime (realToFrac t :: POSIXTime)

Floating types

These types are represented as newtypes of Float and Double, and are instances of Eq, Ord, Num, Read, Show, Enum, Typeable, Storable, Real, Fractional, Floating, RealFrac and RealFloat. That does mean that CFloat's (respectively CDouble's) instances of Eq, Ord, Num and Fractional are as badly behaved as Float's (respectively Double's).

newtype CFloat Source

Haskell type representing the C float type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CFloat Float
Instances
Instances details
Enum CFloat
Instance details

Defined in Foreign.C.Types

Methods

succ :: CFloat -> CFloat Source

pred :: CFloat -> CFloat Source

toEnum :: Int -> CFloat Source

fromEnum :: CFloat -> Int Source

enumFrom :: CFloat -> [CFloat] Source

enumFromThen :: CFloat -> CFloat -> [CFloat] Source

enumFromTo :: CFloat -> CFloat -> [CFloat] Source

enumFromThenTo :: CFloat -> CFloat -> CFloat -> [CFloat] Source

Eq CFloat
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CFloat -> CFloat -> Bool Source

(/=) :: CFloat -> CFloat -> Bool Source

Floating CFloat
Instance details

Defined in Foreign.C.Types

Methods

pi :: CFloat Source

exp :: CFloat -> CFloat Source

log :: CFloat -> CFloat Source

sqrt :: CFloat -> CFloat Source

(**) :: CFloat -> CFloat -> CFloat Source

logBase :: CFloat -> CFloat -> CFloat Source

sin :: CFloat -> CFloat Source

cos :: CFloat -> CFloat Source

tan :: CFloat -> CFloat Source

asin :: CFloat -> CFloat Source

acos :: CFloat -> CFloat Source

atan :: CFloat -> CFloat Source

sinh :: CFloat -> CFloat Source

cosh :: CFloat -> CFloat Source

tanh :: CFloat -> CFloat Source

asinh :: CFloat -> CFloat Source

acosh :: CFloat -> CFloat Source

atanh :: CFloat -> CFloat Source

log1p :: CFloat -> CFloat Source

expm1 :: CFloat -> CFloat Source

log1pexp :: CFloat -> CFloat Source

log1mexp :: CFloat -> CFloat Source

Fractional CFloat
Instance details

Defined in Foreign.C.Types

Methods

(/) :: CFloat -> CFloat -> CFloat Source

recip :: CFloat -> CFloat Source

fromRational :: Rational -> CFloat Source

Num CFloat
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CFloat -> CFloat -> CFloat Source

(-) :: CFloat -> CFloat -> CFloat Source

(*) :: CFloat -> CFloat -> CFloat Source

negate :: CFloat -> CFloat Source

abs :: CFloat -> CFloat Source

signum :: CFloat -> CFloat Source

fromInteger :: Integer -> CFloat Source

Ord CFloat
Instance details

Defined in Foreign.C.Types

Methods

compare :: CFloat -> CFloat -> Ordering Source

(<) :: CFloat -> CFloat -> Bool Source

(<=) :: CFloat -> CFloat -> Bool Source

(>) :: CFloat -> CFloat -> Bool Source

(>=) :: CFloat -> CFloat -> Bool Source

max :: CFloat -> CFloat -> CFloat Source

min :: CFloat -> CFloat -> CFloat Source

Read CFloat
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CFloat Source

readList :: ReadS [CFloat] Source

readPrec :: ReadPrec CFloat Source

readListPrec :: ReadPrec [CFloat] Source

Real CFloat
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CFloat -> Rational Source

RealFloat CFloat
Instance details

Defined in Foreign.C.Types

Methods

floatRadix :: CFloat -> Integer Source

floatDigits :: CFloat -> Int Source

floatRange :: CFloat -> (Int, Int) Source

decodeFloat :: CFloat -> (Integer, Int) Source

encodeFloat :: Integer -> Int -> CFloat Source

exponent :: CFloat -> Int Source

significand :: CFloat -> CFloat Source

scaleFloat :: Int -> CFloat -> CFloat Source

isNaN :: CFloat -> Bool Source

isInfinite :: CFloat -> Bool Source

isDenormalized :: CFloat -> Bool Source

isNegativeZero :: CFloat -> Bool Source

isIEEE :: CFloat -> Bool Source

atan2 :: CFloat -> CFloat -> CFloat Source

RealFrac CFloat
Instance details

Defined in Foreign.C.Types

Methods

properFraction :: Integral b => CFloat -> (b, CFloat) Source

truncate :: Integral b => CFloat -> b Source

round :: Integral b => CFloat -> b Source

ceiling :: Integral b => CFloat -> b Source

floor :: Integral b => CFloat -> b Source

Show CFloat
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CFloat -> ShowS Source

show :: CFloat -> String Source

showList :: [CFloat] -> ShowS Source

Storable CFloat
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CFloat -> Int Source

alignment :: CFloat -> Int Source

peekElemOff :: Ptr CFloat -> Int -> IO CFloat Source

pokeElemOff :: Ptr CFloat -> Int -> CFloat -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CFloat Source

pokeByteOff :: Ptr b -> Int -> CFloat -> IO () Source

peek :: Ptr CFloat -> IO CFloat Source

poke :: Ptr CFloat -> CFloat -> IO () Source

newtype CDouble Source

Haskell type representing the C double type. (The concrete types of Foreign.C.Types are platform-specific.)

Constructors

CDouble Double
Instances
Instances details
Enum CDouble
Instance details

Defined in Foreign.C.Types

Methods

succ :: CDouble -> CDouble Source

pred :: CDouble -> CDouble Source

toEnum :: Int -> CDouble Source

fromEnum :: CDouble -> Int Source

enumFrom :: CDouble -> [CDouble] Source

enumFromThen :: CDouble -> CDouble -> [CDouble] Source

enumFromTo :: CDouble -> CDouble -> [CDouble] Source

enumFromThenTo :: CDouble -> CDouble -> CDouble -> [CDouble] Source

Eq CDouble
Instance details

Defined in Foreign.C.Types

Methods

(==) :: CDouble -> CDouble -> Bool Source

(/=) :: CDouble -> CDouble -> Bool Source

Floating CDouble
Instance details

Defined in Foreign.C.Types

Methods

pi :: CDouble Source

exp :: CDouble -> CDouble Source

log :: CDouble -> CDouble Source

sqrt :: CDouble -> CDouble Source

(**) :: CDouble -> CDouble -> CDouble Source

logBase :: CDouble -> CDouble -> CDouble Source

sin :: CDouble -> CDouble Source

cos :: CDouble -> CDouble Source

tan :: CDouble -> CDouble Source

asin :: CDouble -> CDouble Source

acos :: CDouble -> CDouble Source

atan :: CDouble -> CDouble Source

sinh :: CDouble -> CDouble Source

cosh :: CDouble -> CDouble Source

tanh :: CDouble -> CDouble Source

asinh :: CDouble -> CDouble Source

acosh :: CDouble -> CDouble Source

atanh :: CDouble -> CDouble Source

log1p :: CDouble -> CDouble Source

expm1 :: CDouble -> CDouble Source

log1pexp :: CDouble -> CDouble Source

log1mexp :: CDouble -> CDouble Source

Fractional CDouble
Instance details

Defined in Foreign.C.Types

Methods

(/) :: CDouble -> CDouble -> CDouble Source

recip :: CDouble -> CDouble Source

fromRational :: Rational -> CDouble Source

Num CDouble
Instance details

Defined in Foreign.C.Types

Methods

(+) :: CDouble -> CDouble -> CDouble Source

(-) :: CDouble -> CDouble -> CDouble Source

(*) :: CDouble -> CDouble -> CDouble Source

negate :: CDouble -> CDouble Source

abs :: CDouble -> CDouble Source

signum :: CDouble -> CDouble Source

fromInteger :: Integer -> CDouble Source

Ord CDouble
Instance details

Defined in Foreign.C.Types

Methods

compare :: CDouble -> CDouble -> Ordering Source

(<) :: CDouble -> CDouble -> Bool Source

(<=) :: CDouble -> CDouble -> Bool Source

(>) :: CDouble -> CDouble -> Bool Source

(>=) :: CDouble -> CDouble -> Bool Source

max :: CDouble -> CDouble -> CDouble Source

min :: CDouble -> CDouble -> CDouble Source

Read CDouble
Instance details

Defined in Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CDouble Source

readList :: ReadS [CDouble] Source

readPrec :: ReadPrec CDouble Source

readListPrec :: ReadPrec [CDouble] Source

Real CDouble
Instance details

Defined in Foreign.C.Types

Methods

toRational :: CDouble -> Rational Source

RealFloat CDouble
Instance details

Defined in Foreign.C.Types

Methods

floatRadix :: CDouble -> Integer Source

floatDigits :: CDouble -> Int Source

floatRange :: CDouble -> (Int, Int) Source

decodeFloat :: CDouble -> (Integer, Int) Source

encodeFloat :: Integer -> Int -> CDouble Source

exponent :: CDouble -> Int Source

significand :: CDouble -> CDouble Source

scaleFloat :: Int -> CDouble -> CDouble Source

isNaN :: CDouble -> Bool Source

isInfinite :: CDouble -> Bool Source

isDenormalized :: CDouble -> Bool Source

isNegativeZero :: CDouble -> Bool Source

isIEEE :: CDouble -> Bool Source

atan2 :: CDouble -> CDouble -> CDouble Source

RealFrac CDouble
Instance details

Defined in Foreign.C.Types

Methods

properFraction :: Integral b => CDouble -> (b, CDouble) Source

truncate :: Integral b => CDouble -> b Source

round :: Integral b => CDouble -> b Source

ceiling :: Integral b => CDouble -> b Source

floor :: Integral b => CDouble -> b Source

Show CDouble
Instance details

Defined in Foreign.C.Types

Methods

showsPrec :: Int -> CDouble -> ShowS Source

show :: CDouble -> String Source

showList :: [CDouble] -> ShowS Source

Storable CDouble
Instance details

Defined in Foreign.C.Types

Methods

sizeOf :: CDouble -> Int Source

alignment :: CDouble -> Int Source

peekElemOff :: Ptr CDouble -> Int -> IO CDouble Source

pokeElemOff :: Ptr CDouble -> Int -> CDouble -> IO () Source

peekByteOff :: Ptr b -> Int -> IO CDouble Source

pokeByteOff :: Ptr b -> Int -> CDouble -> IO () Source

peek :: Ptr CDouble -> IO CDouble Source

poke :: Ptr CDouble -> CDouble -> IO () Source

Other types

data CFile Source

Haskell type representing the C FILE type. (The concrete types of Foreign.C.Types are platform-specific.)

data CFpos Source

Haskell type representing the C fpos_t type. (The concrete types of Foreign.C.Types are platform-specific.)

data CJmpBuf Source

Haskell type representing the C jmp_buf type. (The concrete types of Foreign.C.Types are platform-specific.)

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/base-4.14.1.0/Foreign-C-Types.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API