File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,10 @@ library
40
40
, mtl >= 2.2.2 && < 2.3
41
41
, scientific >= 0.3.6.2 && < 0.4
42
42
, string-conv >= 0.1.2 && < 0.2
43
- , template-haskell >= 2.15.0.0 && < 2.16
44
- , text >= 1.2.4.0 && < 1.3
43
+ , text >= 1.2.0 && < 1.3
45
44
, time >= 1.9.3 && < 1.10
46
45
, transformers >= 0.5.6.2 && < 0.6
47
- , unliftio-core >= 0.1.2.0 && < 0.2
46
+ , unliftio-core >= 0.1.2.0 && < 0.2.1
48
47
, unordered-containers >= 0.2.10.0 && < 0.3
49
48
, vector >= 0.12.1.2 && < 0.13
50
49
default-language : Haskell2010
@@ -53,9 +52,13 @@ library
53
52
-- To make both `cabal repl` and `stack ghci` work, we have to
54
53
-- make "a.cpp" come alphabetically before "main.cpp".
55
54
c-sources :
56
- quickjs/cutils.c
55
+ quickjs/cutils.h
56
+ , quickjs/cutils.c
57
+ , quickjs/libbf.h
57
58
, quickjs/libbf.c
59
+ , quickjs/libregexp.h
58
60
, quickjs/libregexp.c
61
+ , quickjs/libunicode.h
59
62
, quickjs/libunicode.c
60
63
, quickjs/quickjs.h
61
64
, quickjs/quickjs.c
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ import Data.Bits (Bits)
7
7
import Foreign.C.Types
8
8
import Foreign.Ptr (plusPtr )
9
9
import Foreign.Storable (Storable (.. ))
10
- import qualified Language.Haskell.TH as TH
11
10
import Language.C.Inline
12
- import Language.C.Inline.Context
11
+ import Language.C.Inline.Context ( Context ( .. ), TypesTable )
13
12
import qualified Language.C.Types as C
14
13
15
14
#include "quickjs.h"
@@ -175,7 +174,7 @@ quickjsCtx = baseCtx <> fptrCtx <> ctx
175
174
{ ctxTypesTable = quickjsTypesTable
176
175
}
177
176
178
- quickjsTypesTable :: Map. Map C. TypeSpecifier TH. TypeQ
177
+ quickjsTypesTable :: TypesTable
179
178
quickjsTypesTable = Map. fromList
180
179
[
181
180
(C. TypeName " JSValue" , [t | JSValue |])
You can’t perform that action at this time.
0 commit comments