This does not work with GHCJS because of it uses the c ffi. Not sure if there's a great workaround for this.