 +  return h$ghcjsbn_sizeInBase_b(h$ghcjsbn_mkBigNat_w(w), base);
 +}
 diff -X ../utils/updatePatches.excludes -Nru upstream/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs boot/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs
---- upstream/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs	2020-03-03 10:42:28.000000000 +0800
-+++ boot/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs	2020-03-03 10:42:28.384092400 +0800
+--- upstream/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs	2020-03-25 15:43:51.000000000 +0800
++++ boot/pkg/integer-gmp/src/GHC/Integer/GMP/Internals.hs	2020-03-25 15:43:51.480000000 +0800
 @@ -1,4 +1,5 @@
  {-# LANGUAGE BangPatterns #-}
 +

-install-includes: HsIntegerGmp.h ghc-gmp.h
+install-includes: HsIntegerGmp.h
diff -X ../utils/updatePatches.excludes -Nru upstream/pkg/integer-gmp/integer-gmp.cabal boot/pkg/integer-gmp/integer-gmp.cabal
--- upstream/pkg/integer-gmp/integer-gmp.cabal	2020-03-03 10:42:28.000000000 +0800
+++ boot/pkg/integer-gmp/integer-gmp.cabal	2020-03-03 10:42:28.384092400 +0800
@@ -70,6 +70,9 @@
   c-sources:
     cbits/wrappers.c
 
+  js-sources:
+    jsbits/ghcjsbn.js
+
   exposed-modules:
     GHC.Integer
     GHC.Integer.Logarithms
diff -X ../utils/updatePatches.excludes -Nru upstream/pkg/integer-gmp/jsbits/ghcjsbn.js boot/pkg/integer-gmp/jsbits/ghcjsbn.js
--- upstream/pkg/integer-gmp/jsbits/ghcjsbn.js	1970-01-01 08:00:00.000000000 +0800
+++ boot/pkg/integer-gmp/jsbits/ghcjsbn.js	2020-03-04 09:59:23.784092400 +0800
@@ -0,0 +1,2137 @@
+/*
+   GHCJS bignum library for integer-gmp package

diff -X ../utils/updatePatches.excludes -Nru upstream/pkg/integer-gmp/integer-gmp.buildinfo.in boot/pkg/integer-gmp/integer-gmp.buildinfo.in
--- upstream/pkg/integer-gmp/integer-gmp.buildinfo.in	2020-03-25 15:43:51.000000000 +0800
+++ boot/pkg/integer-gmp/integer-gmp.buildinfo.in	2020-03-25 15:43:51.480000000 +0800
@@ -2,4 +2,4 @@
 extra-lib-dirs: @GMP_LIB_DIRS@
 extra-libraries: @GMP_LIBS@
