packages feed

data-pdf-fieldreader-0.1.1.0: data-pdf-fieldreader.cabal

cabal-version:       2.4
name:                data-pdf-fieldreader
version:             0.1.1.0
description:         Simple function to extract PDF form field values from a PDF file.
synopsis:            Read PDF form fields
category:            Data
homepage:            https://github.com/ScottSedgwick/Data.Pdf.FieldReader
license:             MIT
license-file:        LICENSE
author:              Scott Sedgwick
maintainer:          Scott Sedgwick <scott.sedgwick@gmail.com>
copyright:           2021 Scott Sedgwick
build-type:          Simple
extra-doc-files:     README.md
                     CHANGELOG.md
tested-with:         GHC == 8.8.3

common common-options
  build-depends:       base == 4.*
                     , bytestring >= 0.10.12 && < 0.11
                     , containers >= 0.6.4 && < 0.7
                     , text >= 1.2.4 && < 1.3
  
  ghc-options:         -Wall
                       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
  if impl(ghc >= 8.0)
    ghc-options:       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.8)
    ghc-options:       -Wmissing-deriving-strategies

  default-language:    Haskell2010
  default-extensions:  ConstraintKinds
                       DeriveGeneric
                       DerivingStrategies
                       GeneralizedNewtypeDeriving
                       InstanceSigs
                       KindSignatures
                       LambdaCase
                       OverloadedStrings
                       RecordWildCards
                       ScopedTypeVariables
                       StandaloneDeriving
                       TupleSections
                       TypeApplications
                       ViewPatterns

library
  import:              common-options
  hs-source-dirs:      src
  exposed-modules:     Data.Pdf.FieldReader
  build-depends:       megaparsec >= 9.1.0 && < 9.2

executable pdfreader
  import:              common-options
  hs-source-dirs:      app
  main-is:             Main.hs
  build-depends:       data-pdf-fieldreader
                     , optparse-applicative >= 0.16.1 && < 0.17
  ghc-options:         -threaded
                       -rtsopts
                       -with-rtsopts=-N