packages feed

jsaddle-wasm-0.0.0.0: jsaddle-wasm.cabal

cabal-version: 3.0
name: jsaddle-wasm
version: 0.0.0.0
synopsis: Run JSaddle @JSM@ with the GHC WASM backend
description: Run JSaddle @JSM@ with the GHC WASM backend.
category: Web, Javascript
homepage: https://github.com/amesgen/jsaddle-wasm
bug-reports: https://github.com/amesgen/jsaddle-wasm/issues
license: CC0-1.0
license-file: LICENSE
extra-source-files: README.md
author: amesgen
maintainer: amesgen@amesgen.de
extra-doc-files: CHANGELOG.md

source-repository head
  location: https://github.com/amesgen/jsaddle-wasm
  type: git

common common
  ghc-options:
    -Wall
    -Wunused-packages
    -Wredundant-constraints

  default-language: GHC2021
  default-extensions:
    BlockArguments
    OverloadedStrings

library
  import: common
  hs-source-dirs: src
  exposed-modules:
    Language.Javascript.JSaddle.Wasm

  other-modules:
    Language.Javascript.JSaddle.Wasm.Internal

  build-depends:
    base >=4.16 && <5,
    jsaddle ^>=0.9,

  if arch(wasm32)
    build-depends:
      aeson >=2 && <2.3,
      async ^>=2.2,
      bytestring >=0.11 && <0.13,
      ghc-experimental ^>=0.1,
      stm ^>=2.5,

    hs-source-dirs: src-wasm
  else
    hs-source-dirs: src-native