File oeis.cabal of Package ghc-oeis

name:         oeis
version:      0.3.9
x-revision: 1
category:     Math
stability:    experimental

author:       Brent Yorgey
maintainer:   Bartosz Nitka <niteria@gmail.com>

license:      BSD3
license-file: LICENSE

synopsis:     Interface to the Online Encyclopedia of Integer Sequences (OEIS)
description:
  Interface to the <http://oeis.org/ Online Encyclopedia of Integer Sequences (OEIS)>.

cabal-version: >= 1.10
build-type:    Custom
tested-with:
  GHC==7.8.4,
  GHC==7.10.3,
  GHC==8.0.2

--------------------------------------------------------------------------------

extra-source-files:
  README.md
  test/data/id_rsp.txt
  test/data/seq_rsp.txt

--------------------------------------------------------------------------------

flag network-uri
  description: Get Network.URI from the network-uri package
  default: True


library
  default-language: Haskell2010

  ghc-options: -Wall -O2
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs

  exposed-modules:
    Math.OEIS
    Math.OEIS.Internal

  other-modules:
    Math.OEIS.Types

  build-depends:
    HTTP    >= 4000.2 && < 4000.4,
    base    >= 3 && < 5

  if flag(network-uri)
    build-depends: network-uri >= 2.6, network >= 2.6
  else
    build-depends: network-uri < 2.6, network < 2.6

--------------------------------------------------------------------------------

test-suite main
  default-language: Haskell2010

  ghc-options: -Wall -O2
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs

  type: exitcode-stdio-1.0
  hs-source-dirs:
    test
  main-is: Test.hs

  build-depends:
    HUnit                >= 1.2 && < 1.7,
    base                 >= 3 && < 5,
    oeis                 == 0.3.*,
    test-framework       == 0.8.*,
    test-framework-hunit == 0.3.*

--------------------------------------------------------------------------------

source-repository head
  type:     git
  location: git://github.com/bsl/oeis.git
openSUSE Build Service is sponsored by