hs-bindgen-runtime
Safe HaskellSafe-Inferred
LanguageGHC2021

HsBindgen.Runtime.Prelude

Description

Common definitions for interfacing with hs-bindgen generated code.

Synopsis

C enumerations

class Integral (CEnumZ a) => CEnum a where Source #

C enumeration

This class implements an API for Haskell representations of C enumerations. C enum declarations only declare values; they do not limit the range of the corresponding integral type. They may have negative values, non-sequential values, and multiple names for a single value.

At a low level, hs-bindgen generates a newtype wrapper around the integral representation type to represent a C enum. An instance of this class is generated automatically. A Show instance defined using showsCEnum is also generated by default. Bounded and Enum instances are not generated automatically because values do not technically need to be declared. Users may optionally derive these instances using AsCEnum or AsSeqentialCEnum when appropriate.

This class may also be used with Haskell sum-type representations of enumerations.

Minimal complete definition

declaredValues, readPrecUndeclared

Associated Types

type CEnumZ a Source #

Integral representation type

Methods

toCEnum :: CEnumZ a -> a Source #

Construct a value from the integral representation

fromCEnum . toCEnum === id

default toCEnum :: Coercible a (CEnumZ a) => CEnumZ a -> a Source #

fromCEnum :: a -> CEnumZ a Source #

Get the integral representation for a value

toCEnum . fromCEnum === id

If a has an Ord instance, it should be compatible with the Ord instance on the underlying integral value:

\x y -> (x <= y) === (fromCEnum x <= fromCEnum y)

default fromCEnum :: Coercible a (CEnumZ a) => a -> CEnumZ a Source #

declaredValues :: proxy a -> DeclaredValues a Source #

Declared values and associated names

showsUndeclared :: proxy a -> Int -> CEnumZ a -> ShowS Source #

Show undeclared value

Like any Show related function, this should generate a valid Haskell expression. In this case, a valid Haskell expression for values outside of the set of declared values (that is, for which isDeclared will return False).

The default definition just shows the underlying integer value; this is valid if the Haskell wrapper has a Num instance. If the Haskell type is simply a newtype wrapper around the underlying C type, you can use showsWrappedUndeclared. Finally, if the Haskell type cannot represent undeclared values, this can be defined using error.

showsUndeclared _ = \_ x ->
  error $ "Unexpected value " ++ show x ++ " for type Foo"

default showsUndeclared :: Show (CEnumZ a) => proxy a -> Int -> CEnumZ a -> ShowS Source #

readPrecUndeclared :: ReadPrec a Source #

isDeclared :: a -> Bool Source #

Determine if the specified value is declared

This has a default definition in terms of getDeclaredValues, but you may wish to override this with a more efficient implementation (in particular, see seqIsDeclared).

mkDeclared :: CEnumZ a -> Maybe a Source #

Construct a value only if it is declared

See also seqMkDeclared.

class CEnum a => SequentialCEnum a where Source #

C enumeration with sequential values

Bounded and Enum methods may be implemented more efficiently when the values of an enumeration are sequential. An instance of this class is generated automatically in this case. Users may optionally derive these instances using AsSequentialCEnum when appropriate.

This class may also be used with Haskell sum-type representations of enumerations.

all isDeclared [minDeclaredValue..maxDeclaredValue]

Methods

minDeclaredValue :: a Source #

The minimum declared value

minDeclaredValue == minimum (filter isDeclared (map toCEnum [minBound..]))

maxDeclaredValue :: a Source #

The maximum declared value

maxDeclaredValue == maximum (filter isDeclared (map toCEnum [minBound..]))

newtype AsCEnum a Source #

Type used to derive classes using DerivingVia a type with a CEnum instance

When the values are sequential, AsSequentialCEnum provides better performance and should therefore be used instead.

The following classes may be derived:

  • Bounded may be derived using the bounds of the declared values. This is not derived by default.
  • Enum may be derived using the bounds of the declared values. This instance assumes that only the declared values are valid and throws a CEnumException if passed a value that is not declared. This is not derived by default.

For declared values we have

toEnum   === coerce       . toCENum   . fromIntegral
fromEnum === fromIntegral . fromCEnum . coerce

In addition we guarantee that where pred or succ are defined, we have

\x -> (pred x < x) && (x < succ x)

Constructors

WrapCEnum 

Fields

Instances

Instances details
CEnum a => Bounded (AsCEnum a) Source # 
Instance details

Defined in HsBindgen.Runtime.CEnum

CEnum a => Enum (AsCEnum a) Source # 
Instance details

Defined in HsBindgen.Runtime.CEnum

Methods

succ :: AsCEnum a -> AsCEnum a #

pred :: AsCEnum a -> AsCEnum a #

toEnum :: Int -> AsCEnum a #

fromEnum :: AsCEnum a -> Int #

enumFrom :: AsCEnum a -> [AsCEnum a] #

enumFromThen :: AsCEnum a -> AsCEnum a -> [AsCEnum a] #

enumFromTo :: AsCEnum a -> AsCEnum a -> [AsCEnum a] #

enumFromThenTo :: AsCEnum a -> AsCEnum a -> AsCEnum a -> [AsCEnum a] #

newtype AsSequentialCEnum a Source #

Type used to derive classes using DerivingVia a type with a SequentialCEnum instance

The following classes may be derived:

  • Bounded may be derived using the bounds of the declared values. This is not derived by default.
  • Enum may be derived using the bounds of the declared values. This instance assumes that only the declared values are valid and throws a CEnumException if passed a value that is not declared. This is not derived by default.

AsSequentialCEnum should have the same properties as AsCEnum.

Constructors

WrapSequentialCEnum 

Fields and bit-fields

class HasCField (a :: Type) (field :: Symbol) where Source #

Evidence that a C object a has a field with the name field.

Fields can be part of structs and unions. Typedefs are a degenerate use case.

Struct

If we have the C struct S:

struct S {
  int x;
  int y;
}

And an accompanying Haskell datatype S:

data S = S { s_x :: CInt, s_y :: CInt }

Then we can define two instances

HasCField S "s_x"
HasCField S "s_y"

Union

If we have the C union U:

union U {
  int x;
  int y;
}

And an accompanying Haskell datatype U:

data U = U ... {- details elided -}
... {- getters and setters elided -}

Then we can define two instances

HasCField U "u_x"
HasCField U "u_y"

Typedef

If we have the C typedef T:

typedef int T;

And an accompanying Haskell newtype T:

newtype T = T { unwrapT :: Int }

Then we can define the instance:

HasCField T "unwrapT"

Associated Types

type CFieldType (a :: Type) (field :: Symbol) :: Type Source #

Methods

offset# :: Proxy# a -> Proxy# field -> Int Source #

The offset (in number of bytes) of the field with respect to the parent object.

Instances

Instances details
HasCField CTm "tm_hour" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_hour" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_hour" -> Int Source #

HasCField CTm "tm_isdst" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_isdst" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_isdst" -> Int Source #

HasCField CTm "tm_mday" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_mday" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_mday" -> Int Source #

HasCField CTm "tm_min" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_min" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_min" -> Int Source #

HasCField CTm "tm_mon" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_mon" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_mon" -> Int Source #

HasCField CTm "tm_sec" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_sec" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_sec" -> Int Source #

HasCField CTm "tm_wday" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_wday" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_wday" -> Int Source #

HasCField CTm "tm_yday" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_yday" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_yday" -> Int Source #

HasCField CTm "tm_year" Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Associated Types

type CFieldType CTm "tm_year" Source #

Methods

offset# :: Proxy# CTm -> Proxy# "tm_year" -> Int Source #

class HasCBitfield (a :: Type) (field :: Symbol) where Source #

Evidence that a C object a has a bit-field with the name field.

Bit-fields can be part of structs and unions.

Struct

If we have the C struct S:

struct S {
  int x : 2;
  int y : 3;
}

And an accompanying Haskell datatype S:

data S = S { s_x :: CInt, s_y :: CInt }

Then we can define two instances

HasCBitfield S "s_x"
HasCBitfield S "s_y"

Union

If we have the C union U:

union U {
  int x : 2;
  int y : 3;
}

And an accompanying Haskell datatype U:

data U = U ... {- details elided -}
... {- getters and setters elided -}

Then we can define two instances

HasCBitfield U "u_x"
HasCBitfield U "u_y"

Associated Types

type CBitfieldType (a :: Type) (field :: Symbol) :: Type Source #

The type of the bit field

Methods

bitfieldOffset# :: Proxy# a -> Proxy# field -> Int Source #

The offset (in number of bits) of the bit-field with respect to the parent object.

bitfieldWidth# :: Proxy# a -> Proxy# field -> Int Source #

The width (in number of bits) of the bit-field.

data BitfieldPtr a where Source #

A pointer to a bit-field of a C object

Bundled Patterns

pattern BitfieldPtr :: Ptr a -> Int -> Int -> BitfieldPtr a 

Function pointers and instances

class ToFunPtr a where Source #

Type class for converting Haskell functions to C function pointers.

Methods

toFunPtr :: a -> IO (FunPtr a) Source #

Convert a Haskell function to a C function pointer.

The caller is responsible for freeing the function pointer using freeHaskellFunPtr when it is no longer needed.

Instances

Instances details
ToFunPtr (IO CBool) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CBool -> IO (FunPtr (IO CBool)) Source #

ToFunPtr (IO CChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CChar -> IO (FunPtr (IO CChar)) Source #

ToFunPtr (IO CDouble) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CFloat) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CInt -> IO (FunPtr (IO CInt)) Source #

ToFunPtr (IO CLLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CLong -> IO (FunPtr (IO CLong)) Source #

ToFunPtr (IO CPtrdiff) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CSChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CShort) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CSize) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CSize -> IO (FunPtr (IO CSize)) Source #

ToFunPtr (IO CUChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CUInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO CUInt -> IO (FunPtr (IO CUInt)) Source #

ToFunPtr (IO CULLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CULong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO CUShort) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO () -> IO (FunPtr (IO ())) Source #

ToFunPtr (IO Int) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: IO Int -> IO (FunPtr (IO Int)) Source #

ToFunPtr (CBool -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CBool -> IO CInt) -> IO (FunPtr (CBool -> IO CInt)) Source #

ToFunPtr (CBool -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CBool -> IO ()) -> IO (FunPtr (CBool -> IO ())) Source #

ToFunPtr (CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> IO CInt) -> IO (FunPtr (CChar -> IO CInt)) Source #

ToFunPtr (CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> IO ()) -> IO (FunPtr (CChar -> IO ())) Source #

ToFunPtr (CChar -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CChar -> IO CInt) -> IO (FunPtr (CChar -> CChar -> IO CInt)) Source #

ToFunPtr (CChar -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CChar -> IO ()) -> IO (FunPtr (CChar -> CChar -> IO ())) Source #

ToFunPtr (CChar -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CDouble -> IO CInt) -> IO (FunPtr (CChar -> CDouble -> IO CInt)) Source #

ToFunPtr (CChar -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CDouble -> IO ()) -> IO (FunPtr (CChar -> CDouble -> IO ())) Source #

ToFunPtr (CChar -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CFloat -> IO CInt) -> IO (FunPtr (CChar -> CFloat -> IO CInt)) Source #

ToFunPtr (CChar -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CFloat -> IO ()) -> IO (FunPtr (CChar -> CFloat -> IO ())) Source #

ToFunPtr (CChar -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CInt -> IO CInt) -> IO (FunPtr (CChar -> CInt -> IO CInt)) Source #

ToFunPtr (CChar -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CInt -> IO ()) -> IO (FunPtr (CChar -> CInt -> IO ())) Source #

ToFunPtr (CChar -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CUInt -> IO CInt) -> IO (FunPtr (CChar -> CUInt -> IO CInt)) Source #

ToFunPtr (CChar -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> CUInt -> IO ()) -> IO (FunPtr (CChar -> CUInt -> IO ())) Source #

ToFunPtr (CChar -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr CChar -> IO CInt) -> IO (FunPtr (CChar -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (CChar -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr CChar -> IO ()) -> IO (FunPtr (CChar -> Ptr CChar -> IO ())) Source #

ToFunPtr (CChar -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr CInt -> IO CInt) -> IO (FunPtr (CChar -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (CChar -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr CInt -> IO ()) -> IO (FunPtr (CChar -> Ptr CInt -> IO ())) Source #

ToFunPtr (CChar -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr Void -> IO CInt) -> IO (FunPtr (CChar -> Ptr Void -> IO CInt)) Source #

ToFunPtr (CChar -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CChar -> Ptr Void -> IO ()) -> IO (FunPtr (CChar -> Ptr Void -> IO ())) Source #

ToFunPtr (CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> IO CInt) -> IO (FunPtr (CDouble -> IO CInt)) Source #

ToFunPtr (CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> IO ()) -> IO (FunPtr (CDouble -> IO ())) Source #

ToFunPtr (CDouble -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CChar -> IO CInt) -> IO (FunPtr (CDouble -> CChar -> IO CInt)) Source #

ToFunPtr (CDouble -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CChar -> IO ()) -> IO (FunPtr (CDouble -> CChar -> IO ())) Source #

ToFunPtr (CDouble -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CDouble -> IO CInt) -> IO (FunPtr (CDouble -> CDouble -> IO CInt)) Source #

ToFunPtr (CDouble -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CDouble -> IO ()) -> IO (FunPtr (CDouble -> CDouble -> IO ())) Source #

ToFunPtr (CDouble -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CFloat -> IO CInt) -> IO (FunPtr (CDouble -> CFloat -> IO CInt)) Source #

ToFunPtr (CDouble -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CFloat -> IO ()) -> IO (FunPtr (CDouble -> CFloat -> IO ())) Source #

ToFunPtr (CDouble -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CInt -> IO CInt) -> IO (FunPtr (CDouble -> CInt -> IO CInt)) Source #

ToFunPtr (CDouble -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CInt -> IO ()) -> IO (FunPtr (CDouble -> CInt -> IO ())) Source #

ToFunPtr (CDouble -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CUInt -> IO CInt) -> IO (FunPtr (CDouble -> CUInt -> IO CInt)) Source #

ToFunPtr (CDouble -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> CUInt -> IO ()) -> IO (FunPtr (CDouble -> CUInt -> IO ())) Source #

ToFunPtr (CDouble -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr CChar -> IO CInt) -> IO (FunPtr (CDouble -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (CDouble -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr CChar -> IO ()) -> IO (FunPtr (CDouble -> Ptr CChar -> IO ())) Source #

ToFunPtr (CDouble -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr CInt -> IO CInt) -> IO (FunPtr (CDouble -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (CDouble -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr CInt -> IO ()) -> IO (FunPtr (CDouble -> Ptr CInt -> IO ())) Source #

ToFunPtr (CDouble -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr Void -> IO CInt) -> IO (FunPtr (CDouble -> Ptr Void -> IO CInt)) Source #

ToFunPtr (CDouble -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CDouble -> Ptr Void -> IO ()) -> IO (FunPtr (CDouble -> Ptr Void -> IO ())) Source #

ToFunPtr (CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> IO CInt) -> IO (FunPtr (CFloat -> IO CInt)) Source #

ToFunPtr (CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> IO ()) -> IO (FunPtr (CFloat -> IO ())) Source #

ToFunPtr (CFloat -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CChar -> IO CInt) -> IO (FunPtr (CFloat -> CChar -> IO CInt)) Source #

ToFunPtr (CFloat -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CChar -> IO ()) -> IO (FunPtr (CFloat -> CChar -> IO ())) Source #

ToFunPtr (CFloat -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CDouble -> IO CInt) -> IO (FunPtr (CFloat -> CDouble -> IO CInt)) Source #

ToFunPtr (CFloat -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CDouble -> IO ()) -> IO (FunPtr (CFloat -> CDouble -> IO ())) Source #

ToFunPtr (CFloat -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CFloat -> IO CInt) -> IO (FunPtr (CFloat -> CFloat -> IO CInt)) Source #

ToFunPtr (CFloat -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CFloat -> IO ()) -> IO (FunPtr (CFloat -> CFloat -> IO ())) Source #

ToFunPtr (CFloat -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CInt -> IO CInt) -> IO (FunPtr (CFloat -> CInt -> IO CInt)) Source #

ToFunPtr (CFloat -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CInt -> IO ()) -> IO (FunPtr (CFloat -> CInt -> IO ())) Source #

ToFunPtr (CFloat -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CUInt -> IO CInt) -> IO (FunPtr (CFloat -> CUInt -> IO CInt)) Source #

ToFunPtr (CFloat -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> CUInt -> IO ()) -> IO (FunPtr (CFloat -> CUInt -> IO ())) Source #

ToFunPtr (CFloat -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr CChar -> IO CInt) -> IO (FunPtr (CFloat -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (CFloat -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr CChar -> IO ()) -> IO (FunPtr (CFloat -> Ptr CChar -> IO ())) Source #

ToFunPtr (CFloat -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr CInt -> IO CInt) -> IO (FunPtr (CFloat -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (CFloat -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr CInt -> IO ()) -> IO (FunPtr (CFloat -> Ptr CInt -> IO ())) Source #

ToFunPtr (CFloat -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr Void -> IO CInt) -> IO (FunPtr (CFloat -> Ptr Void -> IO CInt)) Source #

ToFunPtr (CFloat -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CFloat -> Ptr Void -> IO ()) -> IO (FunPtr (CFloat -> Ptr Void -> IO ())) Source #

ToFunPtr (CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> IO CInt) -> IO (FunPtr (CInt -> IO CInt)) Source #

ToFunPtr (CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> IO ()) -> IO (FunPtr (CInt -> IO ())) Source #

ToFunPtr (CInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CChar -> IO CInt) -> IO (FunPtr (CInt -> CChar -> IO CInt)) Source #

ToFunPtr (CInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CChar -> IO ()) -> IO (FunPtr (CInt -> CChar -> IO ())) Source #

ToFunPtr (CInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CDouble -> IO CInt) -> IO (FunPtr (CInt -> CDouble -> IO CInt)) Source #

ToFunPtr (CInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CDouble -> IO ()) -> IO (FunPtr (CInt -> CDouble -> IO ())) Source #

ToFunPtr (CInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CFloat -> IO CInt) -> IO (FunPtr (CInt -> CFloat -> IO CInt)) Source #

ToFunPtr (CInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CFloat -> IO ()) -> IO (FunPtr (CInt -> CFloat -> IO ())) Source #

ToFunPtr (CInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CInt -> IO CInt) -> IO (FunPtr (CInt -> CInt -> IO CInt)) Source #

ToFunPtr (CInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CInt -> IO ()) -> IO (FunPtr (CInt -> CInt -> IO ())) Source #

ToFunPtr (CInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CUInt -> IO CInt) -> IO (FunPtr (CInt -> CUInt -> IO CInt)) Source #

ToFunPtr (CInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> CUInt -> IO ()) -> IO (FunPtr (CInt -> CUInt -> IO ())) Source #

ToFunPtr (CInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr CChar -> IO CInt) -> IO (FunPtr (CInt -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (CInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr CChar -> IO ()) -> IO (FunPtr (CInt -> Ptr CChar -> IO ())) Source #

ToFunPtr (CInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr CInt -> IO CInt) -> IO (FunPtr (CInt -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (CInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr CInt -> IO ()) -> IO (FunPtr (CInt -> Ptr CInt -> IO ())) Source #

ToFunPtr (CInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr Void -> IO CInt) -> IO (FunPtr (CInt -> Ptr Void -> IO CInt)) Source #

ToFunPtr (CInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CInt -> Ptr Void -> IO ()) -> IO (FunPtr (CInt -> Ptr Void -> IO ())) Source #

ToFunPtr (CLLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CLLong -> IO CInt) -> IO (FunPtr (CLLong -> IO CInt)) Source #

ToFunPtr (CLLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CLLong -> IO ()) -> IO (FunPtr (CLLong -> IO ())) Source #

ToFunPtr (CLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CLong -> IO CInt) -> IO (FunPtr (CLong -> IO CInt)) Source #

ToFunPtr (CLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CLong -> IO ()) -> IO (FunPtr (CLong -> IO ())) Source #

ToFunPtr (CPtrdiff -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CPtrdiff -> IO CInt) -> IO (FunPtr (CPtrdiff -> IO CInt)) Source #

ToFunPtr (CPtrdiff -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CPtrdiff -> IO ()) -> IO (FunPtr (CPtrdiff -> IO ())) Source #

ToFunPtr (CSChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CSChar -> IO CInt) -> IO (FunPtr (CSChar -> IO CInt)) Source #

ToFunPtr (CSChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CSChar -> IO ()) -> IO (FunPtr (CSChar -> IO ())) Source #

ToFunPtr (CShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CShort -> IO CInt) -> IO (FunPtr (CShort -> IO CInt)) Source #

ToFunPtr (CShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CShort -> IO ()) -> IO (FunPtr (CShort -> IO ())) Source #

ToFunPtr (CSize -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CSize -> IO CInt) -> IO (FunPtr (CSize -> IO CInt)) Source #

ToFunPtr (CSize -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CSize -> IO ()) -> IO (FunPtr (CSize -> IO ())) Source #

ToFunPtr (CUChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUChar -> IO CInt) -> IO (FunPtr (CUChar -> IO CInt)) Source #

ToFunPtr (CUChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUChar -> IO ()) -> IO (FunPtr (CUChar -> IO ())) Source #

ToFunPtr (CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> IO CInt) -> IO (FunPtr (CUInt -> IO CInt)) Source #

ToFunPtr (CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> IO ()) -> IO (FunPtr (CUInt -> IO ())) Source #

ToFunPtr (CUInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CChar -> IO CInt) -> IO (FunPtr (CUInt -> CChar -> IO CInt)) Source #

ToFunPtr (CUInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CChar -> IO ()) -> IO (FunPtr (CUInt -> CChar -> IO ())) Source #

ToFunPtr (CUInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CDouble -> IO CInt) -> IO (FunPtr (CUInt -> CDouble -> IO CInt)) Source #

ToFunPtr (CUInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CDouble -> IO ()) -> IO (FunPtr (CUInt -> CDouble -> IO ())) Source #

ToFunPtr (CUInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CFloat -> IO CInt) -> IO (FunPtr (CUInt -> CFloat -> IO CInt)) Source #

ToFunPtr (CUInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CFloat -> IO ()) -> IO (FunPtr (CUInt -> CFloat -> IO ())) Source #

ToFunPtr (CUInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CInt -> IO CInt) -> IO (FunPtr (CUInt -> CInt -> IO CInt)) Source #

ToFunPtr (CUInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CInt -> IO ()) -> IO (FunPtr (CUInt -> CInt -> IO ())) Source #

ToFunPtr (CUInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CUInt -> IO CInt) -> IO (FunPtr (CUInt -> CUInt -> IO CInt)) Source #

ToFunPtr (CUInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> CUInt -> IO ()) -> IO (FunPtr (CUInt -> CUInt -> IO ())) Source #

ToFunPtr (CUInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr CChar -> IO CInt) -> IO (FunPtr (CUInt -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (CUInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr CChar -> IO ()) -> IO (FunPtr (CUInt -> Ptr CChar -> IO ())) Source #

ToFunPtr (CUInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr CInt -> IO CInt) -> IO (FunPtr (CUInt -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (CUInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr CInt -> IO ()) -> IO (FunPtr (CUInt -> Ptr CInt -> IO ())) Source #

ToFunPtr (CUInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr Void -> IO CInt) -> IO (FunPtr (CUInt -> Ptr Void -> IO CInt)) Source #

ToFunPtr (CUInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUInt -> Ptr Void -> IO ()) -> IO (FunPtr (CUInt -> Ptr Void -> IO ())) Source #

ToFunPtr (CULLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CULLong -> IO CInt) -> IO (FunPtr (CULLong -> IO CInt)) Source #

ToFunPtr (CULLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CULLong -> IO ()) -> IO (FunPtr (CULLong -> IO ())) Source #

ToFunPtr (CULong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CULong -> IO CInt) -> IO (FunPtr (CULong -> IO CInt)) Source #

ToFunPtr (CULong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CULong -> IO ()) -> IO (FunPtr (CULong -> IO ())) Source #

ToFunPtr (CUShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUShort -> IO CInt) -> IO (FunPtr (CUShort -> IO CInt)) Source #

ToFunPtr (CUShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (CUShort -> IO ()) -> IO (FunPtr (CUShort -> IO ())) Source #

ToFunPtr (Ptr CBool -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CBool -> IO CInt) -> IO (FunPtr (Ptr CBool -> IO CInt)) Source #

ToFunPtr (Ptr CBool -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CBool -> IO ()) -> IO (FunPtr (Ptr CBool -> IO ())) Source #

ToFunPtr (Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> IO CInt) -> IO (FunPtr (Ptr CChar -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> IO ()) -> IO (FunPtr (Ptr CChar -> IO ())) Source #

ToFunPtr (Ptr CChar -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CChar -> IO CInt) -> IO (FunPtr (Ptr CChar -> CChar -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CChar -> IO ()) -> IO (FunPtr (Ptr CChar -> CChar -> IO ())) Source #

ToFunPtr (Ptr CChar -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CDouble -> IO CInt) -> IO (FunPtr (Ptr CChar -> CDouble -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CDouble -> IO ()) -> IO (FunPtr (Ptr CChar -> CDouble -> IO ())) Source #

ToFunPtr (Ptr CChar -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CFloat -> IO CInt) -> IO (FunPtr (Ptr CChar -> CFloat -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CFloat -> IO ()) -> IO (FunPtr (Ptr CChar -> CFloat -> IO ())) Source #

ToFunPtr (Ptr CChar -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CInt -> IO CInt) -> IO (FunPtr (Ptr CChar -> CInt -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CInt -> IO ()) -> IO (FunPtr (Ptr CChar -> CInt -> IO ())) Source #

ToFunPtr (Ptr CChar -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CUInt -> IO CInt) -> IO (FunPtr (Ptr CChar -> CUInt -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> CUInt -> IO ()) -> IO (FunPtr (Ptr CChar -> CUInt -> IO ())) Source #

ToFunPtr (Ptr CChar -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr CChar -> IO CInt) -> IO (FunPtr (Ptr CChar -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr CChar -> IO ()) -> IO (FunPtr (Ptr CChar -> Ptr CChar -> IO ())) Source #

ToFunPtr (Ptr CChar -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr CInt -> IO CInt) -> IO (FunPtr (Ptr CChar -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr CInt -> IO ()) -> IO (FunPtr (Ptr CChar -> Ptr CInt -> IO ())) Source #

ToFunPtr (Ptr CChar -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr Void -> IO CInt) -> IO (FunPtr (Ptr CChar -> Ptr Void -> IO CInt)) Source #

ToFunPtr (Ptr CChar -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CChar -> Ptr Void -> IO ()) -> IO (FunPtr (Ptr CChar -> Ptr Void -> IO ())) Source #

ToFunPtr (Ptr CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CDouble -> IO CInt) -> IO (FunPtr (Ptr CDouble -> IO CInt)) Source #

ToFunPtr (Ptr CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CDouble -> IO ()) -> IO (FunPtr (Ptr CDouble -> IO ())) Source #

ToFunPtr (Ptr CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CFloat -> IO CInt) -> IO (FunPtr (Ptr CFloat -> IO CInt)) Source #

ToFunPtr (Ptr CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CFloat -> IO ()) -> IO (FunPtr (Ptr CFloat -> IO ())) Source #

ToFunPtr (Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> IO CInt) -> IO (FunPtr (Ptr CInt -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> IO ()) -> IO (FunPtr (Ptr CInt -> IO ())) Source #

ToFunPtr (Ptr CInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CChar -> IO CInt) -> IO (FunPtr (Ptr CInt -> CChar -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CChar -> IO ()) -> IO (FunPtr (Ptr CInt -> CChar -> IO ())) Source #

ToFunPtr (Ptr CInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CDouble -> IO CInt) -> IO (FunPtr (Ptr CInt -> CDouble -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CDouble -> IO ()) -> IO (FunPtr (Ptr CInt -> CDouble -> IO ())) Source #

ToFunPtr (Ptr CInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CFloat -> IO CInt) -> IO (FunPtr (Ptr CInt -> CFloat -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CFloat -> IO ()) -> IO (FunPtr (Ptr CInt -> CFloat -> IO ())) Source #

ToFunPtr (Ptr CInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CInt -> IO CInt) -> IO (FunPtr (Ptr CInt -> CInt -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CInt -> IO ()) -> IO (FunPtr (Ptr CInt -> CInt -> IO ())) Source #

ToFunPtr (Ptr CInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CUInt -> IO CInt) -> IO (FunPtr (Ptr CInt -> CUInt -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> CUInt -> IO ()) -> IO (FunPtr (Ptr CInt -> CUInt -> IO ())) Source #

ToFunPtr (Ptr CInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr CChar -> IO CInt) -> IO (FunPtr (Ptr CInt -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr CChar -> IO ()) -> IO (FunPtr (Ptr CInt -> Ptr CChar -> IO ())) Source #

ToFunPtr (Ptr CInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr CInt -> IO CInt) -> IO (FunPtr (Ptr CInt -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr CInt -> IO ()) -> IO (FunPtr (Ptr CInt -> Ptr CInt -> IO ())) Source #

ToFunPtr (Ptr CInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr Void -> IO CInt) -> IO (FunPtr (Ptr CInt -> Ptr Void -> IO CInt)) Source #

ToFunPtr (Ptr CInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CInt -> Ptr Void -> IO ()) -> IO (FunPtr (Ptr CInt -> Ptr Void -> IO ())) Source #

ToFunPtr (Ptr CLLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CLLong -> IO CInt) -> IO (FunPtr (Ptr CLLong -> IO CInt)) Source #

ToFunPtr (Ptr CLLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CLLong -> IO ()) -> IO (FunPtr (Ptr CLLong -> IO ())) Source #

ToFunPtr (Ptr CLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CLong -> IO CInt) -> IO (FunPtr (Ptr CLong -> IO CInt)) Source #

ToFunPtr (Ptr CLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CLong -> IO ()) -> IO (FunPtr (Ptr CLong -> IO ())) Source #

ToFunPtr (Ptr CPtrdiff -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

ToFunPtr (Ptr CPtrdiff -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CPtrdiff -> IO ()) -> IO (FunPtr (Ptr CPtrdiff -> IO ())) Source #

ToFunPtr (Ptr CSChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CSChar -> IO CInt) -> IO (FunPtr (Ptr CSChar -> IO CInt)) Source #

ToFunPtr (Ptr CSChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CSChar -> IO ()) -> IO (FunPtr (Ptr CSChar -> IO ())) Source #

ToFunPtr (Ptr CShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CShort -> IO CInt) -> IO (FunPtr (Ptr CShort -> IO CInt)) Source #

ToFunPtr (Ptr CShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CShort -> IO ()) -> IO (FunPtr (Ptr CShort -> IO ())) Source #

ToFunPtr (Ptr CSize -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CSize -> IO CInt) -> IO (FunPtr (Ptr CSize -> IO CInt)) Source #

ToFunPtr (Ptr CSize -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CSize -> IO ()) -> IO (FunPtr (Ptr CSize -> IO ())) Source #

ToFunPtr (Ptr CUChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUChar -> IO CInt) -> IO (FunPtr (Ptr CUChar -> IO CInt)) Source #

ToFunPtr (Ptr CUChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUChar -> IO ()) -> IO (FunPtr (Ptr CUChar -> IO ())) Source #

ToFunPtr (Ptr CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUInt -> IO CInt) -> IO (FunPtr (Ptr CUInt -> IO CInt)) Source #

ToFunPtr (Ptr CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUInt -> IO ()) -> IO (FunPtr (Ptr CUInt -> IO ())) Source #

ToFunPtr (Ptr CULLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CULLong -> IO CInt) -> IO (FunPtr (Ptr CULLong -> IO CInt)) Source #

ToFunPtr (Ptr CULLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CULLong -> IO ()) -> IO (FunPtr (Ptr CULLong -> IO ())) Source #

ToFunPtr (Ptr CULong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CULong -> IO CInt) -> IO (FunPtr (Ptr CULong -> IO CInt)) Source #

ToFunPtr (Ptr CULong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CULong -> IO ()) -> IO (FunPtr (Ptr CULong -> IO ())) Source #

ToFunPtr (Ptr CUShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUShort -> IO CInt) -> IO (FunPtr (Ptr CUShort -> IO CInt)) Source #

ToFunPtr (Ptr CUShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr CUShort -> IO ()) -> IO (FunPtr (Ptr CUShort -> IO ())) Source #

ToFunPtr (Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> IO CInt) -> IO (FunPtr (Ptr Void -> IO CInt)) Source #

ToFunPtr (Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> IO ()) -> IO (FunPtr (Ptr Void -> IO ())) Source #

ToFunPtr (Ptr Void -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CChar -> IO CInt) -> IO (FunPtr (Ptr Void -> CChar -> IO CInt)) Source #

ToFunPtr (Ptr Void -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CChar -> IO ()) -> IO (FunPtr (Ptr Void -> CChar -> IO ())) Source #

ToFunPtr (Ptr Void -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CDouble -> IO CInt) -> IO (FunPtr (Ptr Void -> CDouble -> IO CInt)) Source #

ToFunPtr (Ptr Void -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CDouble -> IO ()) -> IO (FunPtr (Ptr Void -> CDouble -> IO ())) Source #

ToFunPtr (Ptr Void -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CFloat -> IO CInt) -> IO (FunPtr (Ptr Void -> CFloat -> IO CInt)) Source #

ToFunPtr (Ptr Void -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CFloat -> IO ()) -> IO (FunPtr (Ptr Void -> CFloat -> IO ())) Source #

ToFunPtr (Ptr Void -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CInt -> IO CInt) -> IO (FunPtr (Ptr Void -> CInt -> IO CInt)) Source #

ToFunPtr (Ptr Void -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CInt -> IO ()) -> IO (FunPtr (Ptr Void -> CInt -> IO ())) Source #

ToFunPtr (Ptr Void -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CUInt -> IO CInt) -> IO (FunPtr (Ptr Void -> CUInt -> IO CInt)) Source #

ToFunPtr (Ptr Void -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> CUInt -> IO ()) -> IO (FunPtr (Ptr Void -> CUInt -> IO ())) Source #

ToFunPtr (Ptr Void -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr CChar -> IO CInt) -> IO (FunPtr (Ptr Void -> Ptr CChar -> IO CInt)) Source #

ToFunPtr (Ptr Void -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr CChar -> IO ()) -> IO (FunPtr (Ptr Void -> Ptr CChar -> IO ())) Source #

ToFunPtr (Ptr Void -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr CInt -> IO CInt) -> IO (FunPtr (Ptr Void -> Ptr CInt -> IO CInt)) Source #

ToFunPtr (Ptr Void -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr CInt -> IO ()) -> IO (FunPtr (Ptr Void -> Ptr CInt -> IO ())) Source #

ToFunPtr (Ptr Void -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr Void -> IO CInt) -> IO (FunPtr (Ptr Void -> Ptr Void -> IO CInt)) Source #

ToFunPtr (Ptr Void -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Void -> Ptr Void -> IO ()) -> IO (FunPtr (Ptr Void -> Ptr Void -> IO ())) Source #

ToFunPtr (Ptr Int -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Int -> IO CInt) -> IO (FunPtr (Ptr Int -> IO CInt)) Source #

ToFunPtr (Ptr Int -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Ptr Int -> IO ()) -> IO (FunPtr (Ptr Int -> IO ())) Source #

ToFunPtr (Int -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Int -> IO CInt) -> IO (FunPtr (Int -> IO CInt)) Source #

ToFunPtr (Int -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

toFunPtr :: (Int -> IO ()) -> IO (FunPtr (Int -> IO ())) Source #

class FromFunPtr a where Source #

Type class for converting C function pointers to Haskell functions.

Methods

fromFunPtr :: FunPtr a -> a Source #

Convert C function pointer into a Haskell function.

Instances

Instances details
FromFunPtr (IO CBool) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CDouble) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CFloat) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CLLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CPtrdiff) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CSChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CShort) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CSize) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CUChar) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CUInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CULLong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CULong) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO CUShort) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (IO ()) -> IO () Source #

FromFunPtr (IO Int) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (IO Int) -> IO Int Source #

FromFunPtr (CBool -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CBool -> IO CInt) -> CBool -> IO CInt Source #

FromFunPtr (CBool -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CBool -> IO ()) -> CBool -> IO () Source #

FromFunPtr (CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> IO CInt) -> CChar -> IO CInt Source #

FromFunPtr (CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> IO ()) -> CChar -> IO () Source #

FromFunPtr (CChar -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CChar -> IO CInt) -> CChar -> CChar -> IO CInt Source #

FromFunPtr (CChar -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CChar -> IO ()) -> CChar -> CChar -> IO () Source #

FromFunPtr (CChar -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CChar -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CDouble -> IO ()) -> CChar -> CDouble -> IO () Source #

FromFunPtr (CChar -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CFloat -> IO CInt) -> CChar -> CFloat -> IO CInt Source #

FromFunPtr (CChar -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CFloat -> IO ()) -> CChar -> CFloat -> IO () Source #

FromFunPtr (CChar -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CInt -> IO CInt) -> CChar -> CInt -> IO CInt Source #

FromFunPtr (CChar -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CInt -> IO ()) -> CChar -> CInt -> IO () Source #

FromFunPtr (CChar -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CUInt -> IO CInt) -> CChar -> CUInt -> IO CInt Source #

FromFunPtr (CChar -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> CUInt -> IO ()) -> CChar -> CUInt -> IO () Source #

FromFunPtr (CChar -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CChar -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> Ptr CChar -> IO ()) -> CChar -> Ptr CChar -> IO () Source #

FromFunPtr (CChar -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> Ptr CInt -> IO CInt) -> CChar -> Ptr CInt -> IO CInt Source #

FromFunPtr (CChar -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> Ptr CInt -> IO ()) -> CChar -> Ptr CInt -> IO () Source #

FromFunPtr (CChar -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> Ptr Void -> IO CInt) -> CChar -> Ptr Void -> IO CInt Source #

FromFunPtr (CChar -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CChar -> Ptr Void -> IO ()) -> CChar -> Ptr Void -> IO () Source #

FromFunPtr (CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> IO ()) -> CDouble -> IO () Source #

FromFunPtr (CDouble -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CChar -> IO ()) -> CDouble -> CChar -> IO () Source #

FromFunPtr (CDouble -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CDouble -> IO ()) -> CDouble -> CDouble -> IO () Source #

FromFunPtr (CDouble -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CFloat -> IO ()) -> CDouble -> CFloat -> IO () Source #

FromFunPtr (CDouble -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CInt -> IO CInt) -> CDouble -> CInt -> IO CInt Source #

FromFunPtr (CDouble -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CInt -> IO ()) -> CDouble -> CInt -> IO () Source #

FromFunPtr (CDouble -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> CUInt -> IO ()) -> CDouble -> CUInt -> IO () Source #

FromFunPtr (CDouble -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> Ptr CChar -> IO ()) -> CDouble -> Ptr CChar -> IO () Source #

FromFunPtr (CDouble -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> Ptr CInt -> IO ()) -> CDouble -> Ptr CInt -> IO () Source #

FromFunPtr (CDouble -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CDouble -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CDouble -> Ptr Void -> IO ()) -> CDouble -> Ptr Void -> IO () Source #

FromFunPtr (CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> IO ()) -> CFloat -> IO () Source #

FromFunPtr (CFloat -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CChar -> IO CInt) -> CFloat -> CChar -> IO CInt Source #

FromFunPtr (CFloat -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CChar -> IO ()) -> CFloat -> CChar -> IO () Source #

FromFunPtr (CFloat -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CDouble -> IO ()) -> CFloat -> CDouble -> IO () Source #

FromFunPtr (CFloat -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CFloat -> IO ()) -> CFloat -> CFloat -> IO () Source #

FromFunPtr (CFloat -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CInt -> IO CInt) -> CFloat -> CInt -> IO CInt Source #

FromFunPtr (CFloat -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CInt -> IO ()) -> CFloat -> CInt -> IO () Source #

FromFunPtr (CFloat -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CUInt -> IO CInt) -> CFloat -> CUInt -> IO CInt Source #

FromFunPtr (CFloat -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> CUInt -> IO ()) -> CFloat -> CUInt -> IO () Source #

FromFunPtr (CFloat -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> Ptr CChar -> IO ()) -> CFloat -> Ptr CChar -> IO () Source #

FromFunPtr (CFloat -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> Ptr CInt -> IO ()) -> CFloat -> Ptr CInt -> IO () Source #

FromFunPtr (CFloat -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CFloat -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CFloat -> Ptr Void -> IO ()) -> CFloat -> Ptr Void -> IO () Source #

FromFunPtr (CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> IO CInt) -> CInt -> IO CInt Source #

FromFunPtr (CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> IO ()) -> CInt -> IO () Source #

FromFunPtr (CInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CChar -> IO CInt) -> CInt -> CChar -> IO CInt Source #

FromFunPtr (CInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CChar -> IO ()) -> CInt -> CChar -> IO () Source #

FromFunPtr (CInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CDouble -> IO CInt) -> CInt -> CDouble -> IO CInt Source #

FromFunPtr (CInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CDouble -> IO ()) -> CInt -> CDouble -> IO () Source #

FromFunPtr (CInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CFloat -> IO CInt) -> CInt -> CFloat -> IO CInt Source #

FromFunPtr (CInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CFloat -> IO ()) -> CInt -> CFloat -> IO () Source #

FromFunPtr (CInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CInt -> IO CInt) -> CInt -> CInt -> IO CInt Source #

FromFunPtr (CInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CInt -> IO ()) -> CInt -> CInt -> IO () Source #

FromFunPtr (CInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CUInt -> IO CInt) -> CInt -> CUInt -> IO CInt Source #

FromFunPtr (CInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> CUInt -> IO ()) -> CInt -> CUInt -> IO () Source #

FromFunPtr (CInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr CChar -> IO CInt) -> CInt -> Ptr CChar -> IO CInt Source #

FromFunPtr (CInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr CChar -> IO ()) -> CInt -> Ptr CChar -> IO () Source #

FromFunPtr (CInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr CInt -> IO CInt) -> CInt -> Ptr CInt -> IO CInt Source #

FromFunPtr (CInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr CInt -> IO ()) -> CInt -> Ptr CInt -> IO () Source #

FromFunPtr (CInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr Void -> IO CInt) -> CInt -> Ptr Void -> IO CInt Source #

FromFunPtr (CInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CInt -> Ptr Void -> IO ()) -> CInt -> Ptr Void -> IO () Source #

FromFunPtr (CLLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CLLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CLLong -> IO ()) -> CLLong -> IO () Source #

FromFunPtr (CLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CLong -> IO CInt) -> CLong -> IO CInt Source #

FromFunPtr (CLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CLong -> IO ()) -> CLong -> IO () Source #

FromFunPtr (CPtrdiff -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CPtrdiff -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CPtrdiff -> IO ()) -> CPtrdiff -> IO () Source #

FromFunPtr (CSChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CSChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CSChar -> IO ()) -> CSChar -> IO () Source #

FromFunPtr (CShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CShort -> IO ()) -> CShort -> IO () Source #

FromFunPtr (CSize -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CSize -> IO CInt) -> CSize -> IO CInt Source #

FromFunPtr (CSize -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CSize -> IO ()) -> CSize -> IO () Source #

FromFunPtr (CUChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CUChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUChar -> IO ()) -> CUChar -> IO () Source #

FromFunPtr (CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> IO CInt) -> CUInt -> IO CInt Source #

FromFunPtr (CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> IO ()) -> CUInt -> IO () Source #

FromFunPtr (CUInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CChar -> IO CInt) -> CUInt -> CChar -> IO CInt Source #

FromFunPtr (CUInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CChar -> IO ()) -> CUInt -> CChar -> IO () Source #

FromFunPtr (CUInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CUInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CDouble -> IO ()) -> CUInt -> CDouble -> IO () Source #

FromFunPtr (CUInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CFloat -> IO CInt) -> CUInt -> CFloat -> IO CInt Source #

FromFunPtr (CUInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CFloat -> IO ()) -> CUInt -> CFloat -> IO () Source #

FromFunPtr (CUInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CInt -> IO CInt) -> CUInt -> CInt -> IO CInt Source #

FromFunPtr (CUInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CInt -> IO ()) -> CUInt -> CInt -> IO () Source #

FromFunPtr (CUInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CUInt -> IO CInt) -> CUInt -> CUInt -> IO CInt Source #

FromFunPtr (CUInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> CUInt -> IO ()) -> CUInt -> CUInt -> IO () Source #

FromFunPtr (CUInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CUInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> Ptr CChar -> IO ()) -> CUInt -> Ptr CChar -> IO () Source #

FromFunPtr (CUInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> Ptr CInt -> IO CInt) -> CUInt -> Ptr CInt -> IO CInt Source #

FromFunPtr (CUInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> Ptr CInt -> IO ()) -> CUInt -> Ptr CInt -> IO () Source #

FromFunPtr (CUInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> Ptr Void -> IO CInt) -> CUInt -> Ptr Void -> IO CInt Source #

FromFunPtr (CUInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUInt -> Ptr Void -> IO ()) -> CUInt -> Ptr Void -> IO () Source #

FromFunPtr (CULLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CULLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CULLong -> IO ()) -> CULLong -> IO () Source #

FromFunPtr (CULong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CULong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CULong -> IO ()) -> CULong -> IO () Source #

FromFunPtr (CUShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (CUShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (CUShort -> IO ()) -> CUShort -> IO () Source #

FromFunPtr (Ptr CBool -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CBool -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CBool -> IO ()) -> Ptr CBool -> IO () Source #

FromFunPtr (Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> IO ()) -> Ptr CChar -> IO () Source #

FromFunPtr (Ptr CChar -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CChar -> IO ()) -> Ptr CChar -> CChar -> IO () Source #

FromFunPtr (Ptr CChar -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CDouble -> IO ()) -> Ptr CChar -> CDouble -> IO () Source #

FromFunPtr (Ptr CChar -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CFloat -> IO ()) -> Ptr CChar -> CFloat -> IO () Source #

FromFunPtr (Ptr CChar -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CInt -> IO CInt) -> Ptr CChar -> CInt -> IO CInt Source #

FromFunPtr (Ptr CChar -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CInt -> IO ()) -> Ptr CChar -> CInt -> IO () Source #

FromFunPtr (Ptr CChar -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> CUInt -> IO ()) -> Ptr CChar -> CUInt -> IO () Source #

FromFunPtr (Ptr CChar -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> Ptr CChar -> IO ()) -> Ptr CChar -> Ptr CChar -> IO () Source #

FromFunPtr (Ptr CChar -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> Ptr CInt -> IO ()) -> Ptr CChar -> Ptr CInt -> IO () Source #

FromFunPtr (Ptr CChar -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CChar -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CChar -> Ptr Void -> IO ()) -> Ptr CChar -> Ptr Void -> IO () Source #

FromFunPtr (Ptr CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CDouble -> IO ()) -> Ptr CDouble -> IO () Source #

FromFunPtr (Ptr CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CFloat -> IO ()) -> Ptr CFloat -> IO () Source #

FromFunPtr (Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> IO ()) -> Ptr CInt -> IO () Source #

FromFunPtr (Ptr CInt -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CChar -> IO CInt) -> Ptr CInt -> CChar -> IO CInt Source #

FromFunPtr (Ptr CInt -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CChar -> IO ()) -> Ptr CInt -> CChar -> IO () Source #

FromFunPtr (Ptr CInt -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CInt -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CDouble -> IO ()) -> Ptr CInt -> CDouble -> IO () Source #

FromFunPtr (Ptr CInt -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CInt -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CFloat -> IO ()) -> Ptr CInt -> CFloat -> IO () Source #

FromFunPtr (Ptr CInt -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CInt -> IO CInt) -> Ptr CInt -> CInt -> IO CInt Source #

FromFunPtr (Ptr CInt -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CInt -> IO ()) -> Ptr CInt -> CInt -> IO () Source #

FromFunPtr (Ptr CInt -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CUInt -> IO CInt) -> Ptr CInt -> CUInt -> IO CInt Source #

FromFunPtr (Ptr CInt -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> CUInt -> IO ()) -> Ptr CInt -> CUInt -> IO () Source #

FromFunPtr (Ptr CInt -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CInt -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> Ptr CChar -> IO ()) -> Ptr CInt -> Ptr CChar -> IO () Source #

FromFunPtr (Ptr CInt -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> Ptr CInt -> IO CInt) -> Ptr CInt -> Ptr CInt -> IO CInt Source #

FromFunPtr (Ptr CInt -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> Ptr CInt -> IO ()) -> Ptr CInt -> Ptr CInt -> IO () Source #

FromFunPtr (Ptr CInt -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> Ptr Void -> IO CInt) -> Ptr CInt -> Ptr Void -> IO CInt Source #

FromFunPtr (Ptr CInt -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CInt -> Ptr Void -> IO ()) -> Ptr CInt -> Ptr Void -> IO () Source #

FromFunPtr (Ptr CLLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CLLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CLLong -> IO ()) -> Ptr CLLong -> IO () Source #

FromFunPtr (Ptr CLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CLong -> IO ()) -> Ptr CLong -> IO () Source #

FromFunPtr (Ptr CPtrdiff -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CPtrdiff -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CPtrdiff -> IO ()) -> Ptr CPtrdiff -> IO () Source #

FromFunPtr (Ptr CSChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CSChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CSChar -> IO ()) -> Ptr CSChar -> IO () Source #

FromFunPtr (Ptr CShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CShort -> IO ()) -> Ptr CShort -> IO () Source #

FromFunPtr (Ptr CSize -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CSize -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CSize -> IO ()) -> Ptr CSize -> IO () Source #

FromFunPtr (Ptr CUChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CUChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CUChar -> IO ()) -> Ptr CUChar -> IO () Source #

FromFunPtr (Ptr CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CUInt -> IO ()) -> Ptr CUInt -> IO () Source #

FromFunPtr (Ptr CULLong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CULLong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CULLong -> IO ()) -> Ptr CULLong -> IO () Source #

FromFunPtr (Ptr CULong -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CULong -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CULong -> IO ()) -> Ptr CULong -> IO () Source #

FromFunPtr (Ptr CUShort -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr CUShort -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr CUShort -> IO ()) -> Ptr CUShort -> IO () Source #

FromFunPtr (Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> IO ()) -> Ptr Void -> IO () Source #

FromFunPtr (Ptr Void -> CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CChar -> IO CInt) -> Ptr Void -> CChar -> IO CInt Source #

FromFunPtr (Ptr Void -> CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CChar -> IO ()) -> Ptr Void -> CChar -> IO () Source #

FromFunPtr (Ptr Void -> CDouble -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr Void -> CDouble -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CDouble -> IO ()) -> Ptr Void -> CDouble -> IO () Source #

FromFunPtr (Ptr Void -> CFloat -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr Void -> CFloat -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CFloat -> IO ()) -> Ptr Void -> CFloat -> IO () Source #

FromFunPtr (Ptr Void -> CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CInt -> IO CInt) -> Ptr Void -> CInt -> IO CInt Source #

FromFunPtr (Ptr Void -> CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CInt -> IO ()) -> Ptr Void -> CInt -> IO () Source #

FromFunPtr (Ptr Void -> CUInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CUInt -> IO CInt) -> Ptr Void -> CUInt -> IO CInt Source #

FromFunPtr (Ptr Void -> CUInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> CUInt -> IO ()) -> Ptr Void -> CUInt -> IO () Source #

FromFunPtr (Ptr Void -> Ptr CChar -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

FromFunPtr (Ptr Void -> Ptr CChar -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> Ptr CChar -> IO ()) -> Ptr Void -> Ptr CChar -> IO () Source #

FromFunPtr (Ptr Void -> Ptr CInt -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> Ptr CInt -> IO CInt) -> Ptr Void -> Ptr CInt -> IO CInt Source #

FromFunPtr (Ptr Void -> Ptr CInt -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> Ptr CInt -> IO ()) -> Ptr Void -> Ptr CInt -> IO () Source #

FromFunPtr (Ptr Void -> Ptr Void -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> Ptr Void -> IO CInt) -> Ptr Void -> Ptr Void -> IO CInt Source #

FromFunPtr (Ptr Void -> Ptr Void -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Void -> Ptr Void -> IO ()) -> Ptr Void -> Ptr Void -> IO () Source #

FromFunPtr (Ptr Int -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Int -> IO CInt) -> Ptr Int -> IO CInt Source #

FromFunPtr (Ptr Int -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Ptr Int -> IO ()) -> Ptr Int -> IO () Source #

FromFunPtr (Int -> IO CInt) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Int -> IO CInt) -> Int -> IO CInt Source #

FromFunPtr (Int -> IO ()) Source # 
Instance details

Defined in HsBindgen.Runtime.TH.Instances

Methods

fromFunPtr :: FunPtr (Int -> IO ()) -> Int -> IO () Source #

withFunPtr :: ToFunPtr a => a -> (FunPtr a -> IO b) -> IO b Source #

This function makes sure that freeHaskellFunPtr is called after toFunPtr has allocated memory for a FunPtr.

Pointers

plusPtrElem :: forall a. Storable a => Ptr a -> Int -> Ptr a Source #

Advances the given address by the given offset in number of elements of type a.

Examples:

plusPtr (_ :: Ptr Word32) 2 -- moves the pointer by 2 bytes
plusPtrElem (_ :: Ptr Word32) 2 -- moves the pointer by 2*4=8 bytes

NOTE: if a is an instance of Prim, then you can alternatively use advancePtr.

Arrays

data ConstantArray (n :: Nat) a Source #

A C array of known size

Instances

Instances details
HasField "toFirstElemPtr" (Ptr (ConstantArray n a)) (Ptr a) Source #

toFirstElemPtr for overloaded record dot syntax

Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

getField :: Ptr (ConstantArray n a) -> Ptr a #

(Storable a, KnownNat n) => Storable (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

sizeOf :: ConstantArray n a -> Int #

alignment :: ConstantArray n a -> Int #

peekElemOff :: Ptr (ConstantArray n a) -> Int -> IO (ConstantArray n a) #

pokeElemOff :: Ptr (ConstantArray n a) -> Int -> ConstantArray n a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (ConstantArray n a) #

pokeByteOff :: Ptr b -> Int -> ConstantArray n a -> IO () #

peek :: Ptr (ConstantArray n a) -> IO (ConstantArray n a) #

poke :: Ptr (ConstantArray n a) -> ConstantArray n a -> IO () #

(Show a, Storable a) => Show (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

(Storable a, Eq a) => Eq (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

(==) :: ConstantArray n a -> ConstantArray n a -> Bool #

(/=) :: ConstantArray n a -> ConstantArray n a -> Bool #

(Storable a, KnownNat n) => ReadRaw (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

readRaw :: Ptr (ConstantArray n a) -> IO (ConstantArray n a) Source #

(Storable a, KnownNat n) => StaticSize (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

(Storable a, KnownNat n) => WriteRaw (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

writeRaw :: Ptr (ConstantArray n a) -> ConstantArray n a -> IO () Source #

data IncompleteArray a Source #

A C array of unknown size

Instances

Instances details
HasField "toFirstElemPtr" (Ptr (IncompleteArray a)) (Ptr a) Source #

toFirstElemPtr for overloaded record dot syntax

Instance details

Defined in HsBindgen.Runtime.IncompleteArray

Methods

getField :: Ptr (IncompleteArray a) -> Ptr a #

(Show a, Storable a) => Show (IncompleteArray a) Source # 
Instance details

Defined in HsBindgen.Runtime.IncompleteArray

(Storable a, Eq a) => Eq (IncompleteArray a) Source # 
Instance details

Defined in HsBindgen.Runtime.IncompleteArray

Marshaling and serialization

class StaticSize a where Source #

Size and alignment for values that have a static size in memory

Types that are instances of Storable can derive this instance.

Minimal complete definition

Nothing

Methods

staticSizeOf :: Proxy a -> Int Source #

Storage requirements (bytes)

default staticSizeOf :: Storable a => Proxy a -> Int Source #

staticAlignment :: Proxy a -> Int Source #

Alignment (bytes)

default staticAlignment :: Storable a => Proxy a -> Int Source #

Instances

Instances details
StaticSize CBool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CClock Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CDouble Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CFloat Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CLLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CPtrdiff Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CSChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CSUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CSigAtomic Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CSize Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CTime Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CULLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CULong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CUShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CWchar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Int16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Int32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Int64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Int8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Word16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Word32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Word64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Word8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize CChar16T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize CChar32T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize CTm Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize CWctransT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize CWctypeT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize CWintT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

StaticSize () Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Bool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Char Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Double Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Float Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Int Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize Word Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize a => StaticSize (Complex a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize (FunPtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize (Ptr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize (StablePtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

StaticSize (PtrConst a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

(Storable a, KnownNat n) => StaticSize (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

class ReadRaw a where Source #

Values that can be read from memory

Types that are instances of Storable can derive this instance.

Minimal complete definition

Nothing

Methods

readRaw :: Ptr a -> IO a Source #

Read a value from the given memory location

This function might require a properly aligned address to function correctly, depending on the architecture.

default readRaw :: Storable a => Ptr a -> IO a Source #

Instances

Instances details
ReadRaw CBool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CClock Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CDouble Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CFloat Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr CInt -> IO CInt Source #

ReadRaw CIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CLLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CPtrdiff Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CSChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CSUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CSigAtomic Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CSize Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CTime Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CULLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CULong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CUShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CWchar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Int16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Int32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Int64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Int8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr Int8 -> IO Int8 Source #

ReadRaw Word16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Word32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Word64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Word8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw CChar16T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

ReadRaw CChar32T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

ReadRaw CTm Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Methods

readRaw :: Ptr CTm -> IO CTm Source #

ReadRaw CWctransT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

ReadRaw CWctypeT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

ReadRaw CWintT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

ReadRaw () Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr () -> IO () Source #

ReadRaw Bool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr Bool -> IO Bool Source #

ReadRaw Char Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr Char -> IO Char Source #

ReadRaw Double Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Float Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

ReadRaw Int Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr Int -> IO Int Source #

ReadRaw Word Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr Word -> IO Word Source #

(ReadRaw a, StaticSize a) => ReadRaw (Complex a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr (Complex a) -> IO (Complex a) Source #

ReadRaw (FunPtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr (FunPtr a) -> IO (FunPtr a) Source #

ReadRaw (Ptr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr (Ptr a) -> IO (Ptr a) Source #

ReadRaw (StablePtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr (StablePtr a) -> IO (StablePtr a) Source #

ReadRaw (PtrConst a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

readRaw :: Ptr (PtrConst a) -> IO (PtrConst a) Source #

(Storable a, KnownNat n) => ReadRaw (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

readRaw :: Ptr (ConstantArray n a) -> IO (ConstantArray n a) Source #

(Storable aux, Storable elem, NumElems elem aux) => ReadRaw (WithFlam elem aux) Source # 
Instance details

Defined in HsBindgen.Runtime.FLAM

Methods

readRaw :: Ptr (WithFlam elem aux) -> IO (WithFlam elem aux) Source #

class WriteRaw a where Source #

Values that can be written to memory

Types that are instances of Storable can derive this instance.

Minimal complete definition

Nothing

Methods

writeRaw :: Ptr a -> a -> IO () Source #

Write a value to the given memory location

This function might require a properly aligned address to function correctly, depending on the architecture.

default writeRaw :: Storable a => Ptr a -> a -> IO () Source #

Instances

Instances details
WriteRaw CBool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CBool -> CBool -> IO () Source #

WriteRaw CChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CChar -> CChar -> IO () Source #

WriteRaw CClock Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CClock -> CClock -> IO () Source #

WriteRaw CDouble Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CDouble -> CDouble -> IO () Source #

WriteRaw CFloat Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CFloat -> CFloat -> IO () Source #

WriteRaw CInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CInt -> CInt -> IO () Source #

WriteRaw CIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CIntMax -> CIntMax -> IO () Source #

WriteRaw CIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CIntPtr -> CIntPtr -> IO () Source #

WriteRaw CLLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CLLong -> CLLong -> IO () Source #

WriteRaw CLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CLong -> CLong -> IO () Source #

WriteRaw CPtrdiff Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CPtrdiff -> CPtrdiff -> IO () Source #

WriteRaw CSChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CSChar -> CSChar -> IO () Source #

WriteRaw CSUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

WriteRaw CShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CShort -> CShort -> IO () Source #

WriteRaw CSigAtomic Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

WriteRaw CSize Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CSize -> CSize -> IO () Source #

WriteRaw CTime Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CTime -> CTime -> IO () Source #

WriteRaw CUChar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CUChar -> CUChar -> IO () Source #

WriteRaw CUInt Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CUInt -> CUInt -> IO () Source #

WriteRaw CUIntMax Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CUIntMax -> CUIntMax -> IO () Source #

WriteRaw CUIntPtr Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CUIntPtr -> CUIntPtr -> IO () Source #

WriteRaw CULLong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CULLong -> CULLong -> IO () Source #

WriteRaw CULong Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CULong -> CULong -> IO () Source #

WriteRaw CUSeconds Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

WriteRaw CUShort Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CUShort -> CUShort -> IO () Source #

WriteRaw CWchar Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr CWchar -> CWchar -> IO () Source #

WriteRaw Int16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Int16 -> Int16 -> IO () Source #

WriteRaw Int32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Int32 -> Int32 -> IO () Source #

WriteRaw Int64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Int64 -> Int64 -> IO () Source #

WriteRaw Int8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Int8 -> Int8 -> IO () Source #

WriteRaw Word16 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Word16 -> Word16 -> IO () Source #

WriteRaw Word32 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Word32 -> Word32 -> IO () Source #

WriteRaw Word64 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Word64 -> Word64 -> IO () Source #

WriteRaw Word8 Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Word8 -> Word8 -> IO () Source #

WriteRaw CChar16T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Methods

writeRaw :: Ptr CChar16T -> CChar16T -> IO () Source #

WriteRaw CChar32T Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Methods

writeRaw :: Ptr CChar32T -> CChar32T -> IO () Source #

WriteRaw CWctransT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

WriteRaw CWctypeT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Methods

writeRaw :: Ptr CWctypeT -> CWctypeT -> IO () Source #

WriteRaw CWintT Source # 
Instance details

Defined in HsBindgen.Runtime.Internal.LibC.Auxiliary

Methods

writeRaw :: Ptr CWintT -> CWintT -> IO () Source #

WriteRaw () Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr () -> () -> IO () Source #

WriteRaw Bool Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Bool -> Bool -> IO () Source #

WriteRaw Char Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Char -> Char -> IO () Source #

WriteRaw Double Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Double -> Double -> IO () Source #

WriteRaw Float Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Float -> Float -> IO () Source #

WriteRaw Int Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Int -> Int -> IO () Source #

WriteRaw Word Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr Word -> Word -> IO () Source #

(StaticSize a, WriteRaw a) => WriteRaw (Complex a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr (Complex a) -> Complex a -> IO () Source #

WriteRaw (FunPtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr (FunPtr a) -> FunPtr a -> IO () Source #

WriteRaw (Ptr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr (Ptr a) -> Ptr a -> IO () Source #

WriteRaw (StablePtr a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr (StablePtr a) -> StablePtr a -> IO () Source #

WriteRaw (PtrConst a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

Methods

writeRaw :: Ptr (PtrConst a) -> PtrConst a -> IO () Source #

(Storable a, KnownNat n) => WriteRaw (ConstantArray n a) Source # 
Instance details

Defined in HsBindgen.Runtime.ConstantArray

Methods

writeRaw :: Ptr (ConstantArray n a) -> ConstantArray n a -> IO () Source #

(Storable aux, Storable elem, NumElems elem aux) => WriteRaw (WithFlam elem aux) Source # 
Instance details

Defined in HsBindgen.Runtime.FLAM

Methods

writeRaw :: Ptr (WithFlam elem aux) -> WithFlam elem aux -> IO () Source #

newtype EquivStorable a Source #

Type used to derive a Storable instance when the type has StaticSize, ReadRaw, and WriteRaw instances

Use the DerivingVia GHC extension as follows:

{-# LANGUAGE DerivingVia #-}

data Foo = Foo { ... }
  deriving Storable via EquivStorable Foo

Constructors

EquivStorable a 

Instances

Instances details
(ReadRaw a, StaticSize a, WriteRaw a) => Storable (EquivStorable a) Source # 
Instance details

Defined in HsBindgen.Runtime.Marshal

newtype Block t Source #

Block

See https://clang.llvm.org/docs/BlockLanguageSpec.html

The type index is the type of the bloc, for example:

typedef int(^VarCounter)(int increment);

corresponds to

newtype VarCounter = VarCounter (Block (CInt -> IO CInt))

Constructors

Block (Ptr ()) 

Read-only pointers

type PtrConst a = ConstPtr a Source #

A read-only pointer.

A PtrConst a is a pointer to a type a with a C const qualifier. For instance, the Haskell type PtrConst CInt is equivalent to the C type const int*. const-qualified contents of a pointer should not be modified, but reading the contents is okay.