Allow GHCJS projects to compile under GHC and develop using intero.

Version on this page:
LTS Haskell 12.26:
Stackage Nightly 2022-02-07:
Latest on Hackage:

See all snapshots ghcjs-base-stub appears in

BSD-3-Clause licensed by Louis Pan
Maintained by [email protected]
This version can be pinned in stack with:ghcjs-base-stub-,2700

Module documentation for

There are no documented modules for this package.

Hackage Build Status

Fake stubs for GHCJS base to allow GHCJS projects to be compiled using GHC. This also allows developing under intero, and generating haddocks.


Add the following to GHCJS project’s cabal.

  if impl(ghcjs)
    build-depends: ghcjs-base
  if !impl(ghcjs)
    build-depends: ghcjs-base-stub



    • Added Semigroup instance to JSString for ghc 8.4.1 and base 4.11.0

    • Added Javascript.Web.Location

    • Added Javascript.Web.Storage

    • Added JavaScript.Cast
    • Added Marshall and Callbacks

    • Initial version with a subset of ghcjs base