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-,2658

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



    • Initial version with a subset of ghcjs base

    • Added JavaScript.Cast
    • Added Marshall and Callbacks

    • Added Javascript.Web.Storage

    • Added Javascript.Web.Location