-- addDependentFile examples/golden/manual/globals.h -- #include -- /* test_manualglobals_Example_get_globalConfig */ -- __attribute__ ((const)) -- struct globalConfig *hs_bindgen_1b18b112a828e595 (void) -- { -- return &globalConfig; -- } -- /* test_manualglobals_Example_get_nonExternGlobalInt */ -- __attribute__ ((const)) -- signed int *hs_bindgen_3cc5675744591425 (void) -- { -- return &nonExternGlobalInt; -- } -- /* test_manualglobals_Example_get_globalConstant */ -- __attribute__ ((const)) -- signed int const *hs_bindgen_d1d21f66d76e4647 (void) -- { -- return &globalConstant; -- } -- /* test_manualglobals_Example_get_anotherGlobalConstant */ -- __attribute__ ((const)) -- ConstInt *hs_bindgen_7b35192d93d6ddac (void) -- { -- return &anotherGlobalConstant; -- } -- /* test_manualglobals_Example_get_constArray1 */ -- __attribute__ ((const)) -- signed int const (*hs_bindgen_8850207312ee9ee9 (void))[4] -- { -- return &constArray1; -- } -- /* test_manualglobals_Example_get_constArray2 */ -- __attribute__ ((const)) -- signed int const (*hs_bindgen_c6ce2097d2a21fc1 (void))[] -- { -- return &constArray2; -- } -- /* test_manualglobals_Example_get_constTuple */ -- __attribute__ ((const)) -- struct tuple const *hs_bindgen_ab75c76aaa5e35e5 (void) -- { -- return &constTuple; -- } -- /* test_manualglobals_Example_get_nonConstTuple */ -- __attribute__ ((const)) -- struct tuple *hs_bindgen_a2454ae941c93b30 (void) -- { -- return &nonConstTuple; -- } -- /* test_manualglobals_Example_get_Int */ -- __attribute__ ((const)) -- signed int *hs_bindgen_87910ad4d5b6d50b (void) -- { -- return ∬ -- } -- /* test_manualglobals_Example_get_constInt */ -- __attribute__ ((const)) -- signed int const *hs_bindgen_8f863fd75ee6a8b5 (void) -- { -- return &constInt; -- } -- /* test_manualglobals_Example_get_ptrToInt */ -- __attribute__ ((const)) -- signed int **hs_bindgen_1a7a96e5c811e2d1 (void) -- { -- return &ptrToInt; -- } -- /* test_manualglobals_Example_get_ptrToConstInt */ -- __attribute__ ((const)) -- signed int const **hs_bindgen_65c37466b4a14692 (void) -- { -- return &ptrToConstInt; -- } -- /* test_manualglobals_Example_get_constPtrToInt */ -- __attribute__ ((const)) -- signed int *const *hs_bindgen_78280019ff2647f8 (void) -- { -- return &constPtrToInt; -- } -- /* test_manualglobals_Example_get_constPtrToConstInt */ -- __attribute__ ((const)) -- signed int const *const *hs_bindgen_b7f5f49d98fc03a2 (void) -- { -- return &constPtrToConstInt; -- } -- /* test_manualglobals_Example_get_a */ -- __attribute__ ((const)) -- signed int *hs_bindgen_6a66996f25c871b0 (void) -- { -- return &a; -- } -- /* test_manualglobals_Example_get_a2 */ -- __attribute__ ((const)) -- signed int const *hs_bindgen_69eaf4375e9019f6 (void) -- { -- return &a2; -- } -- /* test_manualglobals_Example_get_b */ -- __attribute__ ((const)) -- signed int **hs_bindgen_86029851b6c19d0e (void) -- { -- return &b; -- } -- /* test_manualglobals_Example_get_b2 */ -- __attribute__ ((const)) -- signed int const **hs_bindgen_54ab82d9854a31c0 (void) -- { -- return &b2; -- } -- /* test_manualglobals_Example_get_c */ -- __attribute__ ((const)) -- triplet *hs_bindgen_11d5e5406d066dc2 (void) -- { -- return &c; -- } -- /* test_manualglobals_Example_get_c2 */ -- __attribute__ ((const)) -- triplet const *hs_bindgen_05a85a68bb53daff (void) -- { -- return &c2; -- } -- /* test_manualglobals_Example_get_d */ -- __attribute__ ((const)) -- list *hs_bindgen_8fe22549222d7024 (void) -- { -- return &d; -- } -- /* test_manualglobals_Example_get_d2 */ -- __attribute__ ((const)) -- list const *hs_bindgen_3b641c8e9aefc9e3 (void) -- { -- return &d2; -- } {-| __C declaration:__ @struct globalConfig@ __defined at:__ @manual\/globals.h 7:9@ __exported by:__ @manual\/globals.h@ -} data GlobalConfig = GlobalConfig {globalConfig_numThreads :: CInt {- ^ __C declaration:__ @numThreads@ __defined at:__ @manual\/globals.h 8:7@ __exported by:__ @manual\/globals.h@ -}, globalConfig_numWorkers :: CInt {- ^ __C declaration:__ @numWorkers@ __defined at:__ @manual\/globals.h 9:7@ __exported by:__ @manual\/globals.h@ -}} {- ^ __C declaration:__ @struct globalConfig@ __defined at:__ @manual\/globals.h 7:9@ __exported by:__ @manual\/globals.h@ -} deriving stock (Eq, Show) instance StaticSize GlobalConfig where staticSizeOf = \_ -> 8 :: Int staticAlignment = \_ -> 4 :: Int instance ReadRaw GlobalConfig where readRaw = \ptr_0 -> (pure GlobalConfig <*> readRaw (Proxy @"globalConfig_numThreads") ptr_0) <*> readRaw (Proxy @"globalConfig_numWorkers") ptr_0 instance WriteRaw GlobalConfig where writeRaw = \ptr_0 -> \s_1 -> case s_1 of GlobalConfig globalConfig_numThreads_2 globalConfig_numWorkers_3 -> writeRaw (Proxy @"globalConfig_numThreads") ptr_0 globalConfig_numThreads_2 >> writeRaw (Proxy @"globalConfig_numWorkers") ptr_0 globalConfig_numWorkers_3 deriving via (EquivStorable GlobalConfig) instance Storable GlobalConfig instance HasCField GlobalConfig "globalConfig_numThreads" where type CFieldType GlobalConfig "globalConfig_numThreads" = CInt offset# = \_ -> \_ -> 0 instance TyEq ty (CFieldType GlobalConfig "globalConfig_numThreads") => HasField "globalConfig_numThreads" (Ptr GlobalConfig) (Ptr ty) where getField = fromPtr (Proxy @"globalConfig_numThreads") instance HasCField GlobalConfig "globalConfig_numWorkers" where type CFieldType GlobalConfig "globalConfig_numWorkers" = CInt offset# = \_ -> \_ -> 4 instance TyEq ty (CFieldType GlobalConfig "globalConfig_numWorkers") => HasField "globalConfig_numWorkers" (Ptr GlobalConfig) (Ptr ty) where getField = fromPtr (Proxy @"globalConfig_numWorkers") {-| __C declaration:__ @ConstInt@ __defined at:__ @manual\/globals.h 40:19@ __exported by:__ @manual\/globals.h@ -} newtype ConstInt = ConstInt {unwrapConstInt :: CInt} {- ^ __C declaration:__ @ConstInt@ __defined at:__ @manual\/globals.h 40:19@ __exported by:__ @manual\/globals.h@ -} deriving stock (Eq, Ord, Read, Show) deriving newtype (StaticSize, ReadRaw, WriteRaw, Storable, HasFFIType, Prim, Bitfield, Bits, Bounded, Enum, FiniteBits, Integral, Ix, Num, Real) instance TyEq ty (CFieldType ConstInt "unwrapConstInt") => HasField "unwrapConstInt" (Ptr ConstInt) (Ptr ty) where getField = fromPtr (Proxy @"unwrapConstInt") instance HasCField ConstInt "unwrapConstInt" where type CFieldType ConstInt "unwrapConstInt" = CInt offset# = \_ -> \_ -> 0 {-| __C declaration:__ @struct tuple@ __defined at:__ @manual\/globals.h 52:8@ __exported by:__ @manual\/globals.h@ -} data Tuple = Tuple {tuple_x :: CInt {- ^ __C declaration:__ @x@ __defined at:__ @manual\/globals.h 52:20@ __exported by:__ @manual\/globals.h@ -}, tuple_y :: CInt {- ^ __C declaration:__ @y@ __defined at:__ @manual\/globals.h 52:33@ __exported by:__ @manual\/globals.h@ -}} {- ^ __C declaration:__ @struct tuple@ __defined at:__ @manual\/globals.h 52:8@ __exported by:__ @manual\/globals.h@ -} deriving stock (Eq, Show) instance StaticSize Tuple where staticSizeOf = \_ -> 8 :: Int staticAlignment = \_ -> 4 :: Int instance ReadRaw Tuple where readRaw = \ptr_0 -> (pure Tuple <*> readRaw (Proxy @"tuple_x") ptr_0) <*> readRaw (Proxy @"tuple_y") ptr_0 instance WriteRaw Tuple where writeRaw = \ptr_0 -> \s_1 -> case s_1 of Tuple tuple_x_2 tuple_y_3 -> writeRaw (Proxy @"tuple_x") ptr_0 tuple_x_2 >> writeRaw (Proxy @"tuple_y") ptr_0 tuple_y_3 deriving via (EquivStorable Tuple) instance Storable Tuple instance HasCField Tuple "tuple_x" where type CFieldType Tuple "tuple_x" = CInt offset# = \_ -> \_ -> 0 instance TyEq ty (CFieldType Tuple "tuple_x") => HasField "tuple_x" (Ptr Tuple) (Ptr ty) where getField = fromPtr (Proxy @"tuple_x") instance HasCField Tuple "tuple_y" where type CFieldType Tuple "tuple_y" = CInt offset# = \_ -> \_ -> 4 instance TyEq ty (CFieldType Tuple "tuple_y") => HasField "tuple_y" (Ptr Tuple) (Ptr ty) where getField = fromPtr (Proxy @"tuple_y") {-| __C declaration:__ @triplet@ __defined at:__ @manual\/globals.h 81:13@ __exported by:__ @manual\/globals.h@ -} newtype Triplet = Triplet {unwrapTriplet :: (ConstantArray 3 CInt)} {- ^ __C declaration:__ @triplet@ __defined at:__ @manual\/globals.h 81:13@ __exported by:__ @manual\/globals.h@ -} deriving stock (Eq, Show) deriving newtype (StaticSize, ReadRaw, WriteRaw, Storable) instance TyEq ty (CFieldType Triplet "unwrapTriplet") => HasField "unwrapTriplet" (Ptr Triplet) (Ptr ty) where getField = fromPtr (Proxy @"unwrapTriplet") instance HasCField Triplet "unwrapTriplet" where type CFieldType Triplet "unwrapTriplet" = ConstantArray 3 CInt offset# = \_ -> \_ -> 0 {-| __C declaration:__ @list@ __defined at:__ @manual\/globals.h 85:13@ __exported by:__ @manual\/globals.h@ -} newtype List = List {unwrapList :: (IncompleteArray CInt)} {- ^ __C declaration:__ @list@ __defined at:__ @manual\/globals.h 85:13@ __exported by:__ @manual\/globals.h@ -} deriving stock (Eq, Show) instance TyEq ty (CFieldType List "unwrapList") => HasField "unwrapList" (Ptr List) (Ptr ty) where getField = fromPtr (Proxy @"unwrapList") instance HasCField List "unwrapList" where type CFieldType List "unwrapList" = IncompleteArray CInt offset# = \_ -> \_ -> 0 -- __unique:__ @test_manualglobals_Example_get_globalConfig@ foreign import ccall unsafe "hs_bindgen_1b18b112a828e595" hs_bindgen_1b18b112a828e595_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_globalConfig@ hs_bindgen_1b18b112a828e595 :: IO (Ptr GlobalConfig) -- __unique:__ @test_manualglobals_Example_get_globalConfig@ hs_bindgen_1b18b112a828e595 = fromFFIType hs_bindgen_1b18b112a828e595_base {-# NOINLINE globalConfig #-} {-| __C declaration:__ @globalConfig@ __defined at:__ @manual\/globals.h 12:28@ __exported by:__ @manual\/globals.h@ -} globalConfig :: Ptr GlobalConfig {-| __C declaration:__ @globalConfig@ __defined at:__ @manual\/globals.h 12:28@ __exported by:__ @manual\/globals.h@ -} globalConfig = unsafePerformIO hs_bindgen_1b18b112a828e595 -- __unique:__ @test_manualglobals_Example_get_nonExternGlobalInt@ foreign import ccall unsafe "hs_bindgen_3cc5675744591425" hs_bindgen_3cc5675744591425_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_nonExternGlobalInt@ hs_bindgen_3cc5675744591425 :: IO (Ptr CInt) -- __unique:__ @test_manualglobals_Example_get_nonExternGlobalInt@ hs_bindgen_3cc5675744591425 = fromFFIType hs_bindgen_3cc5675744591425_base {-# NOINLINE nonExternGlobalInt #-} {-| __C declaration:__ @nonExternGlobalInt@ __defined at:__ @manual\/globals.h 18:5@ __exported by:__ @manual\/globals.h@ -} nonExternGlobalInt :: Ptr CInt {-| __C declaration:__ @nonExternGlobalInt@ __defined at:__ @manual\/globals.h 18:5@ __exported by:__ @manual\/globals.h@ -} nonExternGlobalInt = unsafePerformIO hs_bindgen_3cc5675744591425 -- __unique:__ @test_manualglobals_Example_get_globalConstant@ foreign import ccall unsafe "hs_bindgen_d1d21f66d76e4647" hs_bindgen_d1d21f66d76e4647_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_globalConstant@ hs_bindgen_d1d21f66d76e4647 :: IO (PtrConst CInt) -- __unique:__ @test_manualglobals_Example_get_globalConstant@ hs_bindgen_d1d21f66d76e4647 = fromFFIType hs_bindgen_d1d21f66d76e4647_base {-# NOINLINE hs_bindgen_ec20fad59e967cf0 #-} {-| __C declaration:__ @globalConstant@ __defined at:__ @manual\/globals.h 39:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_globalConstant@ -} hs_bindgen_ec20fad59e967cf0 :: PtrConst CInt {-| __C declaration:__ @globalConstant@ __defined at:__ @manual\/globals.h 39:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_globalConstant@ -} hs_bindgen_ec20fad59e967cf0 = unsafePerformIO hs_bindgen_d1d21f66d76e4647 {-# NOINLINE globalConstant #-} globalConstant :: CInt globalConstant = unsafePerformIO (peek hs_bindgen_ec20fad59e967cf0) -- __unique:__ @test_manualglobals_Example_get_anotherGlobalConstant@ foreign import ccall unsafe "hs_bindgen_7b35192d93d6ddac" hs_bindgen_7b35192d93d6ddac_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_anotherGlobalConstant@ hs_bindgen_7b35192d93d6ddac :: IO (PtrConst ConstInt) -- __unique:__ @test_manualglobals_Example_get_anotherGlobalConstant@ hs_bindgen_7b35192d93d6ddac = fromFFIType hs_bindgen_7b35192d93d6ddac_base {-# NOINLINE hs_bindgen_c8344b69b41647d0 #-} {-| __C declaration:__ @anotherGlobalConstant@ __defined at:__ @manual\/globals.h 41:17@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_anotherGlobalConstant@ -} hs_bindgen_c8344b69b41647d0 :: PtrConst ConstInt {-| __C declaration:__ @anotherGlobalConstant@ __defined at:__ @manual\/globals.h 41:17@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_anotherGlobalConstant@ -} hs_bindgen_c8344b69b41647d0 = unsafePerformIO hs_bindgen_7b35192d93d6ddac {-# NOINLINE anotherGlobalConstant #-} anotherGlobalConstant :: ConstInt anotherGlobalConstant = unsafePerformIO (peek hs_bindgen_c8344b69b41647d0) -- __unique:__ @test_manualglobals_Example_get_constArray1@ foreign import ccall unsafe "hs_bindgen_8850207312ee9ee9" hs_bindgen_8850207312ee9ee9_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constArray1@ hs_bindgen_8850207312ee9ee9 :: IO (PtrConst (ConstantArray 4 CInt)) -- __unique:__ @test_manualglobals_Example_get_constArray1@ hs_bindgen_8850207312ee9ee9 = fromFFIType hs_bindgen_8850207312ee9ee9_base {-# NOINLINE hs_bindgen_ab47d9c9aff882f7 #-} {-| An array of known size of const ints __C declaration:__ @constArray1@ __defined at:__ @manual\/globals.h 48:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constArray1@ -} hs_bindgen_ab47d9c9aff882f7 :: PtrConst (ConstantArray 4 CInt) {-| An array of known size of const ints __C declaration:__ @constArray1@ __defined at:__ @manual\/globals.h 48:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constArray1@ -} hs_bindgen_ab47d9c9aff882f7 = unsafePerformIO hs_bindgen_8850207312ee9ee9 {-# NOINLINE constArray1 #-} constArray1 :: ConstantArray 4 CInt constArray1 = unsafePerformIO (peek hs_bindgen_ab47d9c9aff882f7) -- __unique:__ @test_manualglobals_Example_get_constArray2@ foreign import ccall unsafe "hs_bindgen_c6ce2097d2a21fc1" hs_bindgen_c6ce2097d2a21fc1_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constArray2@ hs_bindgen_c6ce2097d2a21fc1 :: IO (PtrConst (IncompleteArray CInt)) -- __unique:__ @test_manualglobals_Example_get_constArray2@ hs_bindgen_c6ce2097d2a21fc1 = fromFFIType hs_bindgen_c6ce2097d2a21fc1_base {-# NOINLINE constArray2 #-} {-| An array of unknown size of const insts __C declaration:__ @constArray2@ __defined at:__ @manual\/globals.h 50:18@ __exported by:__ @manual\/globals.h@ -} constArray2 :: PtrConst (IncompleteArray CInt) {-| An array of unknown size of const insts __C declaration:__ @constArray2@ __defined at:__ @manual\/globals.h 50:18@ __exported by:__ @manual\/globals.h@ -} constArray2 = unsafePerformIO hs_bindgen_c6ce2097d2a21fc1 -- __unique:__ @test_manualglobals_Example_get_constTuple@ foreign import ccall unsafe "hs_bindgen_ab75c76aaa5e35e5" hs_bindgen_ab75c76aaa5e35e5_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constTuple@ hs_bindgen_ab75c76aaa5e35e5 :: IO (PtrConst Tuple) -- __unique:__ @test_manualglobals_Example_get_constTuple@ hs_bindgen_ab75c76aaa5e35e5 = fromFFIType hs_bindgen_ab75c76aaa5e35e5_base {-# NOINLINE hs_bindgen_957dfe4346c1834f #-} {-| A constant tuple __C declaration:__ @constTuple@ __defined at:__ @manual\/globals.h 54:27@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constTuple@ -} hs_bindgen_957dfe4346c1834f :: PtrConst Tuple {-| A constant tuple __C declaration:__ @constTuple@ __defined at:__ @manual\/globals.h 54:27@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constTuple@ -} hs_bindgen_957dfe4346c1834f = unsafePerformIO hs_bindgen_ab75c76aaa5e35e5 {-# NOINLINE constTuple #-} constTuple :: Tuple constTuple = unsafePerformIO (peek hs_bindgen_957dfe4346c1834f) -- __unique:__ @test_manualglobals_Example_get_nonConstTuple@ foreign import ccall unsafe "hs_bindgen_a2454ae941c93b30" hs_bindgen_a2454ae941c93b30_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_nonConstTuple@ hs_bindgen_a2454ae941c93b30 :: IO (Ptr Tuple) -- __unique:__ @test_manualglobals_Example_get_nonConstTuple@ hs_bindgen_a2454ae941c93b30 = fromFFIType hs_bindgen_a2454ae941c93b30_base {-# NOINLINE nonConstTuple #-} {-| A non-constant tuple with a constant member __C declaration:__ @nonConstTuple@ __defined at:__ @manual\/globals.h 56:21@ __exported by:__ @manual\/globals.h@ -} nonConstTuple :: Ptr Tuple {-| A non-constant tuple with a constant member __C declaration:__ @nonConstTuple@ __defined at:__ @manual\/globals.h 56:21@ __exported by:__ @manual\/globals.h@ -} nonConstTuple = unsafePerformIO hs_bindgen_a2454ae941c93b30 -- __unique:__ @test_manualglobals_Example_get_Int@ foreign import ccall unsafe "hs_bindgen_87910ad4d5b6d50b" hs_bindgen_87910ad4d5b6d50b_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_Int@ hs_bindgen_87910ad4d5b6d50b :: IO (Ptr CInt) -- __unique:__ @test_manualglobals_Example_get_Int@ hs_bindgen_87910ad4d5b6d50b = fromFFIType hs_bindgen_87910ad4d5b6d50b_base {-# NOINLINE int #-} {-| An int __C declaration:__ @Int@ __defined at:__ @manual\/globals.h 59:12@ __exported by:__ @manual\/globals.h@ -} int :: Ptr CInt {-| An int __C declaration:__ @Int@ __defined at:__ @manual\/globals.h 59:12@ __exported by:__ @manual\/globals.h@ -} int = unsafePerformIO hs_bindgen_87910ad4d5b6d50b -- __unique:__ @test_manualglobals_Example_get_constInt@ foreign import ccall unsafe "hs_bindgen_8f863fd75ee6a8b5" hs_bindgen_8f863fd75ee6a8b5_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constInt@ hs_bindgen_8f863fd75ee6a8b5 :: IO (PtrConst CInt) -- __unique:__ @test_manualglobals_Example_get_constInt@ hs_bindgen_8f863fd75ee6a8b5 = fromFFIType hs_bindgen_8f863fd75ee6a8b5_base {-# NOINLINE hs_bindgen_e999b97ca3936542 #-} {-| A const int __C declaration:__ @constInt@ __defined at:__ @manual\/globals.h 61:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constInt@ -} hs_bindgen_e999b97ca3936542 :: PtrConst CInt {-| A const int __C declaration:__ @constInt@ __defined at:__ @manual\/globals.h 61:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constInt@ -} hs_bindgen_e999b97ca3936542 = unsafePerformIO hs_bindgen_8f863fd75ee6a8b5 {-# NOINLINE constInt #-} constInt :: CInt constInt = unsafePerformIO (peek hs_bindgen_e999b97ca3936542) -- __unique:__ @test_manualglobals_Example_get_ptrToInt@ foreign import ccall unsafe "hs_bindgen_1a7a96e5c811e2d1" hs_bindgen_1a7a96e5c811e2d1_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_ptrToInt@ hs_bindgen_1a7a96e5c811e2d1 :: IO (Ptr (Ptr CInt)) -- __unique:__ @test_manualglobals_Example_get_ptrToInt@ hs_bindgen_1a7a96e5c811e2d1 = fromFFIType hs_bindgen_1a7a96e5c811e2d1_base {-# NOINLINE ptrToInt #-} {-| A pointer to int __C declaration:__ @ptrToInt@ __defined at:__ @manual\/globals.h 63:14@ __exported by:__ @manual\/globals.h@ -} ptrToInt :: Ptr (Ptr CInt) {-| A pointer to int __C declaration:__ @ptrToInt@ __defined at:__ @manual\/globals.h 63:14@ __exported by:__ @manual\/globals.h@ -} ptrToInt = unsafePerformIO hs_bindgen_1a7a96e5c811e2d1 -- __unique:__ @test_manualglobals_Example_get_ptrToConstInt@ foreign import ccall unsafe "hs_bindgen_65c37466b4a14692" hs_bindgen_65c37466b4a14692_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_ptrToConstInt@ hs_bindgen_65c37466b4a14692 :: IO (Ptr (PtrConst CInt)) -- __unique:__ @test_manualglobals_Example_get_ptrToConstInt@ hs_bindgen_65c37466b4a14692 = fromFFIType hs_bindgen_65c37466b4a14692_base {-# NOINLINE ptrToConstInt #-} {-| A pointer to const int __C declaration:__ @ptrToConstInt@ __defined at:__ @manual\/globals.h 65:20@ __exported by:__ @manual\/globals.h@ -} ptrToConstInt :: Ptr (PtrConst CInt) {-| A pointer to const int __C declaration:__ @ptrToConstInt@ __defined at:__ @manual\/globals.h 65:20@ __exported by:__ @manual\/globals.h@ -} ptrToConstInt = unsafePerformIO hs_bindgen_65c37466b4a14692 -- __unique:__ @test_manualglobals_Example_get_constPtrToInt@ foreign import ccall unsafe "hs_bindgen_78280019ff2647f8" hs_bindgen_78280019ff2647f8_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constPtrToInt@ hs_bindgen_78280019ff2647f8 :: IO (PtrConst (Ptr CInt)) -- __unique:__ @test_manualglobals_Example_get_constPtrToInt@ hs_bindgen_78280019ff2647f8 = fromFFIType hs_bindgen_78280019ff2647f8_base {-# NOINLINE hs_bindgen_7a3b424845cc1ed9 #-} {-| A const pointer to int __C declaration:__ @constPtrToInt@ __defined at:__ @manual\/globals.h 67:20@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constPtrToInt@ -} hs_bindgen_7a3b424845cc1ed9 :: PtrConst (Ptr CInt) {-| A const pointer to int __C declaration:__ @constPtrToInt@ __defined at:__ @manual\/globals.h 67:20@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constPtrToInt@ -} hs_bindgen_7a3b424845cc1ed9 = unsafePerformIO hs_bindgen_78280019ff2647f8 {-# NOINLINE constPtrToInt #-} constPtrToInt :: Ptr CInt constPtrToInt = unsafePerformIO (peek hs_bindgen_7a3b424845cc1ed9) -- __unique:__ @test_manualglobals_Example_get_constPtrToConstInt@ foreign import ccall unsafe "hs_bindgen_b7f5f49d98fc03a2" hs_bindgen_b7f5f49d98fc03a2_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_constPtrToConstInt@ hs_bindgen_b7f5f49d98fc03a2 :: IO (PtrConst (PtrConst CInt)) -- __unique:__ @test_manualglobals_Example_get_constPtrToConstInt@ hs_bindgen_b7f5f49d98fc03a2 = fromFFIType hs_bindgen_b7f5f49d98fc03a2_base {-# NOINLINE hs_bindgen_5e25eac293910abb #-} {-| A const pointer to const int __C declaration:__ @constPtrToConstInt@ __defined at:__ @manual\/globals.h 69:26@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constPtrToConstInt@ -} hs_bindgen_5e25eac293910abb :: PtrConst (PtrConst CInt) {-| A const pointer to const int __C declaration:__ @constPtrToConstInt@ __defined at:__ @manual\/globals.h 69:26@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_constPtrToConstInt@ -} hs_bindgen_5e25eac293910abb = unsafePerformIO hs_bindgen_b7f5f49d98fc03a2 {-# NOINLINE constPtrToConstInt #-} constPtrToConstInt :: PtrConst CInt constPtrToConstInt = unsafePerformIO (peek hs_bindgen_5e25eac293910abb) -- __unique:__ @test_manualglobals_Example_get_a@ foreign import ccall unsafe "hs_bindgen_6a66996f25c871b0" hs_bindgen_6a66996f25c871b0_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_a@ hs_bindgen_6a66996f25c871b0 :: IO (Ptr CInt) -- __unique:__ @test_manualglobals_Example_get_a@ hs_bindgen_6a66996f25c871b0 = fromFFIType hs_bindgen_6a66996f25c871b0_base {-# NOINLINE a #-} {-| __C declaration:__ @a@ __defined at:__ @manual\/globals.h 75:12@ __exported by:__ @manual\/globals.h@ -} a :: Ptr CInt {-| __C declaration:__ @a@ __defined at:__ @manual\/globals.h 75:12@ __exported by:__ @manual\/globals.h@ -} a = unsafePerformIO hs_bindgen_6a66996f25c871b0 -- __unique:__ @test_manualglobals_Example_get_a2@ foreign import ccall unsafe "hs_bindgen_69eaf4375e9019f6" hs_bindgen_69eaf4375e9019f6_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_a2@ hs_bindgen_69eaf4375e9019f6 :: IO (PtrConst CInt) -- __unique:__ @test_manualglobals_Example_get_a2@ hs_bindgen_69eaf4375e9019f6 = fromFFIType hs_bindgen_69eaf4375e9019f6_base {-# NOINLINE hs_bindgen_604b6be28898361f #-} {-| __C declaration:__ @a2@ __defined at:__ @manual\/globals.h 76:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_a2@ -} hs_bindgen_604b6be28898361f :: PtrConst CInt {-| __C declaration:__ @a2@ __defined at:__ @manual\/globals.h 76:18@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_a2@ -} hs_bindgen_604b6be28898361f = unsafePerformIO hs_bindgen_69eaf4375e9019f6 {-# NOINLINE a2 #-} a2 :: CInt a2 = unsafePerformIO (peek hs_bindgen_604b6be28898361f) -- __unique:__ @test_manualglobals_Example_get_b@ foreign import ccall unsafe "hs_bindgen_86029851b6c19d0e" hs_bindgen_86029851b6c19d0e_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_b@ hs_bindgen_86029851b6c19d0e :: IO (Ptr (Ptr CInt)) -- __unique:__ @test_manualglobals_Example_get_b@ hs_bindgen_86029851b6c19d0e = fromFFIType hs_bindgen_86029851b6c19d0e_base {-# NOINLINE b #-} {-| __C declaration:__ @b@ __defined at:__ @manual\/globals.h 78:14@ __exported by:__ @manual\/globals.h@ -} b :: Ptr (Ptr CInt) {-| __C declaration:__ @b@ __defined at:__ @manual\/globals.h 78:14@ __exported by:__ @manual\/globals.h@ -} b = unsafePerformIO hs_bindgen_86029851b6c19d0e -- __unique:__ @test_manualglobals_Example_get_b2@ foreign import ccall unsafe "hs_bindgen_54ab82d9854a31c0" hs_bindgen_54ab82d9854a31c0_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_b2@ hs_bindgen_54ab82d9854a31c0 :: IO (Ptr (PtrConst CInt)) -- __unique:__ @test_manualglobals_Example_get_b2@ hs_bindgen_54ab82d9854a31c0 = fromFFIType hs_bindgen_54ab82d9854a31c0_base {-# NOINLINE b2 #-} {-| __C declaration:__ @b2@ __defined at:__ @manual\/globals.h 79:20@ __exported by:__ @manual\/globals.h@ -} b2 :: Ptr (PtrConst CInt) {-| __C declaration:__ @b2@ __defined at:__ @manual\/globals.h 79:20@ __exported by:__ @manual\/globals.h@ -} b2 = unsafePerformIO hs_bindgen_54ab82d9854a31c0 -- __unique:__ @test_manualglobals_Example_get_c@ foreign import ccall unsafe "hs_bindgen_11d5e5406d066dc2" hs_bindgen_11d5e5406d066dc2_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_c@ hs_bindgen_11d5e5406d066dc2 :: IO (Ptr Triplet) -- __unique:__ @test_manualglobals_Example_get_c@ hs_bindgen_11d5e5406d066dc2 = fromFFIType hs_bindgen_11d5e5406d066dc2_base {-# NOINLINE c #-} {-| __C declaration:__ @c@ __defined at:__ @manual\/globals.h 82:16@ __exported by:__ @manual\/globals.h@ -} c :: Ptr Triplet {-| __C declaration:__ @c@ __defined at:__ @manual\/globals.h 82:16@ __exported by:__ @manual\/globals.h@ -} c = unsafePerformIO hs_bindgen_11d5e5406d066dc2 -- __unique:__ @test_manualglobals_Example_get_c2@ foreign import ccall unsafe "hs_bindgen_05a85a68bb53daff" hs_bindgen_05a85a68bb53daff_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_c2@ hs_bindgen_05a85a68bb53daff :: IO (PtrConst Triplet) -- __unique:__ @test_manualglobals_Example_get_c2@ hs_bindgen_05a85a68bb53daff = fromFFIType hs_bindgen_05a85a68bb53daff_base {-# NOINLINE hs_bindgen_14cc4924924d5040 #-} {-| __C declaration:__ @c2@ __defined at:__ @manual\/globals.h 83:22@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_c2@ -} hs_bindgen_14cc4924924d5040 :: PtrConst Triplet {-| __C declaration:__ @c2@ __defined at:__ @manual\/globals.h 83:22@ __exported by:__ @manual\/globals.h@ __unique:__ @test_manualglobals_Example_c2@ -} hs_bindgen_14cc4924924d5040 = unsafePerformIO hs_bindgen_05a85a68bb53daff {-# NOINLINE c2 #-} c2 :: Triplet c2 = unsafePerformIO (peek hs_bindgen_14cc4924924d5040) -- __unique:__ @test_manualglobals_Example_get_d@ foreign import ccall unsafe "hs_bindgen_8fe22549222d7024" hs_bindgen_8fe22549222d7024_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_d@ hs_bindgen_8fe22549222d7024 :: IO (Ptr List) -- __unique:__ @test_manualglobals_Example_get_d@ hs_bindgen_8fe22549222d7024 = fromFFIType hs_bindgen_8fe22549222d7024_base {-# NOINLINE d #-} {-| __C declaration:__ @d@ __defined at:__ @manual\/globals.h 86:13@ __exported by:__ @manual\/globals.h@ -} d :: Ptr List {-| __C declaration:__ @d@ __defined at:__ @manual\/globals.h 86:13@ __exported by:__ @manual\/globals.h@ -} d = unsafePerformIO hs_bindgen_8fe22549222d7024 -- __unique:__ @test_manualglobals_Example_get_d2@ foreign import ccall unsafe "hs_bindgen_3b641c8e9aefc9e3" hs_bindgen_3b641c8e9aefc9e3_base :: IO (Ptr Void) -- __unique:__ @test_manualglobals_Example_get_d2@ hs_bindgen_3b641c8e9aefc9e3 :: IO (PtrConst List) -- __unique:__ @test_manualglobals_Example_get_d2@ hs_bindgen_3b641c8e9aefc9e3 = fromFFIType hs_bindgen_3b641c8e9aefc9e3_base {-# NOINLINE d2 #-} {-| __C declaration:__ @d2@ __defined at:__ @manual\/globals.h 87:19@ __exported by:__ @manual\/globals.h@ -} d2 :: PtrConst List {-| __C declaration:__ @d2@ __defined at:__ @manual\/globals.h 87:19@ __exported by:__ @manual\/globals.h@ -} d2 = unsafePerformIO hs_bindgen_3b641c8e9aefc9e3