packages feed

ghcjs-fetch-0.1.0.0: ghcjs-fetch.cabal

name:                ghcjs-fetch
version:             0.1.0.0
synopsis:            GHCJS bindings for the JavaScript Fetch API
homepage:            https://github.com/cocreature/ghcjs-fetch#readme
license:             BSD3
license-file:        LICENSE
author:              Moritz Kiefer
maintainer:          moritz.kiefer@purelyfunctional.org
copyright:           (C) 2017 Moritz Kiefer
category:            Web
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10
tested-with:         GHC == 8.0.2

library
  hs-source-dirs:      src
  exposed-modules:     GHCJS.Fetch
                       GHCJS.Fetch.FFI
                       GHCJS.Fetch.Types
  build-depends:       aeson >= 1.1 && < 1.3
                     , base >= 4.9 && < 5
                     , bytestring >= 0.10 && < 0.11
                     , case-insensitive >= 1.2 && < 1.3
                     , http-types >= 0.9 && < 0.10
  if impl(ghcjs)
    build-depends:     ghcjs-base
  else
    build-depends:     ghcjs-base-stub
  default-language:    Haskell2010

test-suite ghcjs-fetch-test
  hs-source-dirs:      test
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  if !impl(ghcjs)
    buildable: False
  else
    build-depends:       aeson
                       , base
                       , ghcjs-base >= 0.2 && < 0.3
                       , ghcjs-fetch
                       , hspec >= 2.4 && < 2.5
                       , hspec-core >= 2.4 && < 2.5
                       , http-types
                       , QuickCheck >= 2.9 && < 2.11
                       , text >= 1.2 && < 1.3
                       , unordered-containers >= 0.2 && < 0.3
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/cocreature/ghcjs-fetch