name:                cabal-file
version:             0.1.1
synopsis:            Cabal file access
description:
        cabal-file is a small library on top of the 'hackage-security' library
        for accessing the local Hackage repo index cache, and a command-line tool
        'cblfile' which can diff .cabal versions, list package versions,
        save a cabal file, and show metadata from the index. It uses
        simple-cabal to display package dependency lists.
license:             BSD3
license-file:        LICENSE
author:              Jens Petersen
maintainer:          juhpetersen@gmail.com
copyright:           2019-2020  Jens Petersen
category:            Distribution
build-type:          Simple
extra-doc-files:     README.md
                   , ChangeLog.md
cabal-version:       1.18
tested-with:         GHC == 8.4.4, GHC == 8.6.5,  GHC == 8.8.4, GHC == 8.10.2

source-repository head
  type:                git
  location:            https://github.com/juhp/cabal-file.git

executable cblfile
  main-is:             Main.hs
  other-modules:       Cmds
                       Depends
  hs-source-dirs:      app
  build-depends:       base < 5
                     , bytestring
                     , Cabal >= 2.2
                     , cabal-file
                     , directory
                     , extra
                     , filepath
                     , optparse-applicative
                     , simple-cabal > 0.1
                     , simple-cmd
                     , simple-cmd-args >= 0.1.2
  default-language:    Haskell2010
  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields

library
  build-depends:       base < 5
                     , bytestring
                     , Cabal >= 2.2
                     , directory
                     , extra
                     , filepath
                     , hackage-security
                     , optparse-applicative
                     , simple-cabal > 0.1
                     , simple-cmd
                     , time
  exposed-modules:     Hackage.Index
  hs-source-dirs:      src

  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields

  default-language:    Haskell2010