cabal-version:      2.4
name:               ghcjs-base-stub
version:            0.3.0.0
synopsis:           Allow GHCJS projects to compile under GHC and develop using intero.
description:        Allow GHCJS projects to compile under GHC and develop using intero. Please refer to README.md.
homepage:           https://github.com/louispan/javascript-stub#readme
license:            BSD-3-Clause
license-file:       LICENSE
author:             Louis Pan
maintainer:         louis@pan.me
copyright:          2019 Louis Pan
category:           Web
build-type:         Simple
tested-with:        GHC == 8.6.5
extra-source-files: README.md
                    ghcjs-base/LICENSE
                    ghcjs-base/README.md
                    src/**/*.hs
                    ghcjs-base/jsbits/*.js
                    ghcjs-base/**/*.hs

library
  default-language: Haskell2010
  if impl(ghcjs)
    hs-source-dirs: ghcjs-base
  if !impl(ghcjs)
    hs-source-dirs: src

  if impl(ghcjs)
    other-extensions: JavaScriptFFI

  other-modules:    GHCJS.Internal.Types
                    Data.JSString.Internal.Type
  exposed-modules:  Data.JSString
                    Data.JSString.Internal.Fusion
                    Data.JSString.Internal.Fusion.CaseMapping
                    Data.JSString.Internal.Fusion.Common
                    Data.JSString.Internal.Fusion.Types
                    Data.JSString.Internal.Search
                    Data.JSString.Text
                    GHCJS.Concurrent
                    GHCJS.Foreign
                    GHCJS.Foreign.Callback
                    GHCJS.Foreign.Callback.Internal
                    GHCJS.Foreign.Export
                    GHCJS.Foreign.Internal
                    GHCJS.Marshal
                    GHCJS.Marshal.Internal
                    GHCJS.Marshal.Pure
                    GHCJS.Nullable
                    GHCJS.Types
                    JavaScript.Array
                    JavaScript.Array.Internal
                    JavaScript.Cast
                    JavaScript.Object
                    JavaScript.Object.Internal
                    JavaScript.Web.Location
                    JavaScript.Web.Storage

  if !impl(ghcjs)
    exposed-modules: GHCJS.Prim

  build-depends:    base >= 4.7 && < 5
                  , ghc-prim
                  , aeson >= 0.8
                  , attoparsec >= 0.11
                  , containers >= 0.5
                  , vector >= 0.10
                  , unordered-containers >= 0.2
                  , transformers >= 0.3
                  , scientific >= 0.3
                  , primitive >= 0.5
                  , text >= 1.1
                  , deepseq >= 1.3

  if impl(ghcjs)
    build-depends:  ghcjs-prim
                  , integer-gmp
                  , binary >= 0.8
                  , bytestring >= 0.10
                  , aeson >= 0.8
                  , time >= 1.5
                  , hashable >= 1.2
                  , dlist >= 0.7

  ghc-options:      -Wall

source-repository head
  type:     git
  location: https://github.com/louispan/ghcjs-base-stub