|
| 1 | +[ |
| 2 | + DeclForeignImport |
| 3 | + ForeignImportDecl { |
| 4 | + foreignImportName = Name |
| 5 | + "@NsVar" |
| 6 | + "_acos", |
| 7 | + foreignImportParameters = [ |
| 8 | + FunctionParameter { |
| 9 | + functionParameterName = Just |
| 10 | + (Name "@NsVar" "x"), |
| 11 | + functionParameterType = |
| 12 | + HsPrimType HsPrimCDouble, |
| 13 | + functionParameterComment = Just |
| 14 | + Comment { |
| 15 | + commentTitle = Nothing, |
| 16 | + commentOrigin = Just "x", |
| 17 | + commentLocation = Nothing, |
| 18 | + commentHeaderInfo = Nothing, |
| 19 | + commentChildren = []}}], |
| 20 | + foreignImportResultType = |
| 21 | + NormalResultType |
| 22 | + (HsIO |
| 23 | + (HsPrimType HsPrimCDouble)), |
| 24 | + foreignImportOrigName = |
| 25 | + "hs_bindgen_test_ordinary_anon_parent_49d2dc050c5f231a", |
| 26 | + foreignImportCallConv = |
| 27 | + CallConvUserlandCAPI |
| 28 | + UserlandCapiWrapper { |
| 29 | + capiWrapperDefinition = |
| 30 | + concat |
| 31 | + [ |
| 32 | + "double hs_bindgen_test_ordinary_anon_parent_49d2dc050c5f231a (\n", |
| 33 | + " double arg1\n", |
| 34 | + ")\n", |
| 35 | + "{\n", |
| 36 | + " return _acos(arg1);\n", |
| 37 | + "}"], |
| 38 | + capiWrapperImport = |
| 39 | + "ordinary_anon_parent.h"}, |
| 40 | + foreignImportOrigin = Function |
| 41 | + Function { |
| 42 | + functionArgs = [ |
| 43 | + _×_ |
| 44 | + (Just |
| 45 | + NamePair { |
| 46 | + nameC = Name "x", |
| 47 | + nameHsIdent = Identifier "x"}) |
| 48 | + (TypePrim |
| 49 | + (PrimFloating PrimDouble))], |
| 50 | + functionAttrs = |
| 51 | + FunctionAttributes |
| 52 | + ImpureFunction, |
| 53 | + functionRes = TypePrim |
| 54 | + (PrimFloating PrimDouble)}, |
| 55 | + foreignImportComment = Just |
| 56 | + Comment { |
| 57 | + commentTitle = Nothing, |
| 58 | + commentOrigin = Just "_acos", |
| 59 | + commentLocation = Just |
| 60 | + "ordinary_anon_child.h:4:1", |
| 61 | + commentHeaderInfo = Just |
| 62 | + HeaderInfo { |
| 63 | + headerMainHeaders = NE.fromList |
| 64 | + ["ordinary_anon_parent.h"], |
| 65 | + headerInclude = |
| 66 | + "ordinary_anon_child.h"}, |
| 67 | + commentChildren = []}, |
| 68 | + foreignImportSafety = Safe}, |
| 69 | + DeclForeignImport |
| 70 | + ForeignImportDecl { |
| 71 | + foreignImportName = Name |
| 72 | + "@NsVar" |
| 73 | + "_acos", |
| 74 | + foreignImportParameters = [ |
| 75 | + FunctionParameter { |
| 76 | + functionParameterName = Just |
| 77 | + (Name "@NsVar" "x"), |
| 78 | + functionParameterType = |
| 79 | + HsPrimType HsPrimCDouble, |
| 80 | + functionParameterComment = Just |
| 81 | + Comment { |
| 82 | + commentTitle = Nothing, |
| 83 | + commentOrigin = Just "x", |
| 84 | + commentLocation = Nothing, |
| 85 | + commentHeaderInfo = Nothing, |
| 86 | + commentChildren = []}}], |
| 87 | + foreignImportResultType = |
| 88 | + NormalResultType |
| 89 | + (HsIO |
| 90 | + (HsPrimType HsPrimCDouble)), |
| 91 | + foreignImportOrigName = |
| 92 | + "hs_bindgen_test_ordinary_anon_parent_faad0266dab4d429", |
| 93 | + foreignImportCallConv = |
| 94 | + CallConvUserlandCAPI |
| 95 | + UserlandCapiWrapper { |
| 96 | + capiWrapperDefinition = |
| 97 | + concat |
| 98 | + [ |
| 99 | + "double hs_bindgen_test_ordinary_anon_parent_faad0266dab4d429 (\n", |
| 100 | + " double arg1\n", |
| 101 | + ")\n", |
| 102 | + "{\n", |
| 103 | + " return _acos(arg1);\n", |
| 104 | + "}"], |
| 105 | + capiWrapperImport = |
| 106 | + "ordinary_anon_parent.h"}, |
| 107 | + foreignImportOrigin = Function |
| 108 | + Function { |
| 109 | + functionArgs = [ |
| 110 | + _×_ |
| 111 | + (Just |
| 112 | + NamePair { |
| 113 | + nameC = Name "x", |
| 114 | + nameHsIdent = Identifier "x"}) |
| 115 | + (TypePrim |
| 116 | + (PrimFloating PrimDouble))], |
| 117 | + functionAttrs = |
| 118 | + FunctionAttributes |
| 119 | + ImpureFunction, |
| 120 | + functionRes = TypePrim |
| 121 | + (PrimFloating PrimDouble)}, |
| 122 | + foreignImportComment = Just |
| 123 | + Comment { |
| 124 | + commentTitle = Nothing, |
| 125 | + commentOrigin = Just "_acos", |
| 126 | + commentLocation = Just |
| 127 | + "ordinary_anon_child.h:4:1", |
| 128 | + commentHeaderInfo = Just |
| 129 | + HeaderInfo { |
| 130 | + headerMainHeaders = NE.fromList |
| 131 | + ["ordinary_anon_parent.h"], |
| 132 | + headerInclude = |
| 133 | + "ordinary_anon_child.h"}, |
| 134 | + commentChildren = []}, |
| 135 | + foreignImportSafety = Unsafe}, |
| 136 | + DeclForeignImport |
| 137 | + ForeignImportDecl { |
| 138 | + foreignImportName = Name |
| 139 | + "@NsVar" |
| 140 | + "hs_bindgen_test_ordinary_anon_parent_c6a8256d628dc56b", |
| 141 | + foreignImportParameters = [], |
| 142 | + foreignImportResultType = |
| 143 | + NormalResultType |
| 144 | + (HsIO |
| 145 | + (HsFunPtr |
| 146 | + (HsFun |
| 147 | + (HsPrimType HsPrimCDouble) |
| 148 | + (HsIO |
| 149 | + (HsPrimType HsPrimCDouble))))), |
| 150 | + foreignImportOrigName = |
| 151 | + "hs_bindgen_test_ordinary_anon_parent_c6a8256d628dc56b", |
| 152 | + foreignImportCallConv = |
| 153 | + CallConvUserlandCAPI |
| 154 | + UserlandCapiWrapper { |
| 155 | + capiWrapperDefinition = |
| 156 | + concat |
| 157 | + [ |
| 158 | + "/* get__acos_ptr */\n", |
| 159 | + "__attribute__ ((const))\n", |
| 160 | + "double (*hs_bindgen_test_ordinary_anon_parent_c6a8256d628dc56b (void)) (\n", |
| 161 | + " double arg1\n", |
| 162 | + ")\n", |
| 163 | + "{\n", |
| 164 | + " return &_acos;\n", |
| 165 | + "}"], |
| 166 | + capiWrapperImport = |
| 167 | + "ordinary_anon_parent.h"}, |
| 168 | + foreignImportOrigin = Global |
| 169 | + (TypeFun |
| 170 | + [ |
| 171 | + TypePrim |
| 172 | + (PrimFloating PrimDouble)] |
| 173 | + (TypePrim |
| 174 | + (PrimFloating PrimDouble))), |
| 175 | + foreignImportComment = Nothing, |
| 176 | + foreignImportSafety = Unsafe}, |
| 177 | + DeclSimple, |
| 178 | + DeclSimple] |
0 commit comments