@@ -303,6 +303,24 @@
303303 unix = null;
304304 unorderedContainers = null;
305305 vector = null;
306+
307+ # GHCJS-specific workarounds
308+ split = super.split.override {
309+ cabal = self.cabal.override {
310+ extension = self: super: {
311+ doCheck = false; # Under ghcjs, the tests hang
312+ };
313+ };
314+ };
315+ dependentMap = super.dependentMap.override {
316+ cabal = self.cabal.override {
317+ extension = self: super: {
318+ preConfigure = ''
319+ sed -i 's/^.*ghc-options:.*$//' *.cabal
320+ ''; # Without this, we get "target ‘base’ is not a module name or a source file"
321+ };
322+ };
323+ };
306324 };
307325 };
308326