cabal-version:       2.4

name:                isbn
version:             1.1.0.1
synopsis:            ISBN Validation and Manipulation
description:         See the README at <https://github.com/charukiewicz/hs-isbn#readme>
homepage:            https://github.com/charukiewicz/hs-isbn
bug-reports:         https://github.com/charukiewicz/hs-isbn/issues
license:             Apache-2.0
license-file:        LICENSE
author:              Christian Charukiewicz
maintainer:          charukiewicz@protonmail.com
copyright:           © 2020 Christian Charukiewicz
category:            Data
extra-doc-files:
    CHANGELOG.md
    README.md


source-repository head
    type:     git
    location: https://github.com/charukiewicz/hs-isbn.git


flag dev
  description: Turn on development settings, where all warnings are errors
  manual: True
  default: False


library
  exposed-modules:     Data.ISBN
                     , Data.ISBN.ISBN10
                     , Data.ISBN.ISBN13
                     , Data.ISBN.Types
  build-depends:       base >=4.9 && < 5.0
                     , text >= 1.2 && < 1.3
  hs-source-dirs:      lib
  if(flag(dev))
      ghc-options:     -Wall
                       -Wcompat
                       -Werror
                       -Wincomplete-patterns
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
  else
      ghc-options:     -Wall
                       -Wcompat
                       -Werror=incomplete-patterns
                       -Werror=incomplete-uni-patterns
                       -Werror=incomplete-record-updates
  default-language:    Haskell2010


test-suite isbn-test
  default-language:    Haskell2010
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , hspec >= 2.7 && < 3
                     , isbn
                     , text
  other-modules:       Data.ISBNSpec
                     , Data.ISBN.ISBN10Spec
                     , Data.ISBN.ISBN13Spec