name:         oeis
version:      0.3.10.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:    Simple
tested-with:
  GHC==7.8.4,
  GHC==7.10.3,
  GHC==8.0.2,
  GHC==8.2.2,
  GHC==8.4.4,
  GHC==8.6.5,
  GHC==8.8.1

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

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

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

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

  other-modules:
    Math.OEIS.Types

  build-depends:
    http-client >= 0.7 && < 0.8,
    http-client-tls >= 0.3 && < 0.4,
    http-types >= 0.12 && < 0.13,
    utf8-string >= 1.0 && < 1.1,
    base    >= 3 && < 5

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

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

test-suite main
  default-language: Haskell2010

  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: https://github.com/niteria/oeis.git