packages feed

pantry-0.9.3: pantry.cabal

cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack

name:           pantry
version:        0.9.3
synopsis:       Content addressable Haskell package management
description:    Please see the README on GitHub at <https://github.com/commercialhaskell/pantry#readme>
category:       Development
homepage:       https://github.com/commercialhaskell/pantry#readme
bug-reports:    https://github.com/commercialhaskell/pantry/issues
author:         Michael Snoyman
maintainer:     michael@snoyman.com
copyright:      2018-2022 FP Complete
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    ChangeLog.md
    attic/hpack-0.1.2.3.tar.gz
    attic/package-0.1.2.3.tar.gz
    attic/symlink-to-dir.tar.gz

source-repository head
  type: git
  location: https://github.com/commercialhaskell/pantry

flag test-pretty-exceptions
  description: Build an executable to test pretty exceptions
  manual: False
  default: False

library
  exposed-modules:
      Pantry
      Pantry.SQLite
      Pantry.Internal.Stackage
  other-modules:
      Hackage.Security.Client.Repository.HttpLib.HttpClient
      Pantry.Archive
      Pantry.HTTP
      Pantry.Hackage
      Pantry.Repo
      Pantry.Storage
      Pantry.Casa
      Pantry.Tree
  reexported-modules:
      Pantry.SHA256
  hs-source-dirs:
      src/
  ghc-options: -fwrite-ide-info -hiedir=.hie -Wall
  build-depends:
      Cabal >=3 && <3.11
    , aeson
    , aeson-warning-parser
    , ansi-terminal
    , base >=4.10 && <5
    , bytestring
    , casa-client >=0.0.2
    , casa-types
    , companion
    , conduit
    , conduit-extra
    , containers
    , crypton
    , crypton-conduit
    , digest
    , filelock
    , generic-deriving
    , hackage-security
    , hpack >=0.35.3
    , http-client
    , http-client-tls >=0.3.6.2
    , http-conduit
    , http-download >=0.2.1.0
    , http-types
    , internal
    , memory
    , mtl
    , network-uri
    , path
    , path-io
    , persistent
    , persistent-sqlite >=2.9.3
    , persistent-template
    , primitive
    , resourcet
    , rio
    , rio-orphans
    , rio-prettyprint >=0.1.7.0
    , static-bytes
    , tar-conduit >=0.4.0
    , text
    , text-metrics
    , time
    , transformers
    , unix-compat
    , unliftio
    , unordered-containers
    , vector
    , yaml
    , zip-archive
  default-language: Haskell2010
  if impl(ghc >= 9.4.5) && os(windows)
    build-depends:
        network >=3.1.2.9
  if os(windows)
    other-modules:
        System.IsWindows
    hs-source-dirs:
        src/windows/
  else
    other-modules:
        System.IsWindows
    hs-source-dirs:
        src/unix/

library internal
  exposed-modules:
      Pantry.HPack
      Pantry.Internal
      Pantry.SHA256
      Pantry.Types
  other-modules:
      Paths_pantry
  autogen-modules:
      Paths_pantry
  hs-source-dirs:
      int/
  ghc-options: -fwrite-ide-info -hiedir=.hie -Wall
  build-depends:
      Cabal >=3 && <3.11
    , aeson
    , aeson-warning-parser
    , ansi-terminal
    , base >=4.10 && <5
    , bytestring
    , casa-client >=0.0.2
    , casa-types
    , companion
    , conduit
    , conduit-extra
    , containers
    , crypton
    , crypton-conduit
    , digest
    , filelock
    , generic-deriving
    , hackage-security
    , hpack >=0.35.3
    , http-client
    , http-client-tls >=0.3.6.2
    , http-conduit
    , http-download >=0.2.1.0
    , http-types
    , memory
    , mtl
    , network-uri
    , path
    , path-io
    , persistent
    , persistent-sqlite >=2.9.3
    , persistent-template
    , primitive
    , resourcet
    , rio
    , rio-orphans
    , rio-prettyprint >=0.1.7.0
    , static-bytes
    , tar-conduit >=0.4.0
    , text
    , text-metrics
    , time
    , transformers
    , unix-compat
    , unliftio
    , unordered-containers
    , vector
    , yaml
    , zip-archive
  default-language: Haskell2010
  if impl(ghc >= 9.4.5) && os(windows)
    build-depends:
        network >=3.1.2.9

executable test-pretty-exceptions
  main-is: Main.hs
  other-modules:
      Paths_pantry
  autogen-modules:
      Paths_pantry
  hs-source-dirs:
      app/test-pretty-exceptions
  ghc-options: -fwrite-ide-info -hiedir=.hie -Wall
  build-depends:
      Cabal >=3 && <3.11
    , aeson
    , aeson-warning-parser
    , ansi-terminal
    , base >=4.10 && <5
    , bytestring
    , casa-client >=0.0.2
    , casa-types
    , companion
    , conduit
    , conduit-extra
    , containers
    , crypton
    , crypton-conduit
    , digest
    , filelock
    , generic-deriving
    , hackage-security
    , hpack >=0.35.3
    , http-client
    , http-client-tls >=0.3.6.2
    , http-conduit
    , http-download >=0.2.1.0
    , http-types
    , memory
    , mtl
    , network-uri
    , optparse-applicative
    , pantry
    , path
    , path-io
    , persistent
    , persistent-sqlite >=2.9.3
    , persistent-template
    , primitive
    , resourcet
    , rio
    , rio-orphans
    , rio-prettyprint >=0.1.7.0
    , static-bytes
    , tar-conduit >=0.4.0
    , text
    , text-metrics
    , time
    , transformers
    , unix-compat
    , unliftio
    , unordered-containers
    , vector
    , yaml
    , zip-archive
  default-language: Haskell2010
  if impl(ghc >= 9.4.5) && os(windows)
    build-depends:
        network >=3.1.2.9
  if !flag(test-pretty-exceptions)
    buildable: False
  if os(windows)
    other-modules:
        PathAbsExamples
        System.Terminal
    hs-source-dirs:
        app/test-pretty-exceptions/windows/
    build-depends:
        Win32
      , process
  else
    other-modules:
        PathAbsExamples
        System.Terminal
    hs-source-dirs:
        app/test-pretty-exceptions/unix/

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Pantry.ArchiveSpec
      Pantry.BuildPlanSpec
      Pantry.CabalSpec
      Pantry.CasaSpec
      Pantry.FileSpec
      Pantry.GlobalHintsSpec
      Pantry.HackageSpec
      Pantry.InternalSpec
      Pantry.TreeSpec
      Pantry.TypesSpec
      Paths_pantry
  autogen-modules:
      Paths_pantry
  hs-source-dirs:
      test
  ghc-options: -fwrite-ide-info -hiedir=.hie -Wall
  build-tool-depends:
      hspec-discover:hspec-discover
  build-depends:
      Cabal >=3 && <3.11
    , QuickCheck
    , aeson
    , aeson-warning-parser
    , ansi-terminal
    , base >=4.10 && <5
    , bytestring
    , casa-client >=0.0.2
    , casa-types
    , companion
    , conduit
    , conduit-extra
    , containers
    , crypton
    , crypton-conduit
    , digest
    , exceptions
    , filelock
    , generic-deriving
    , hackage-security
    , hedgehog
    , hpack >=0.35.3
    , hspec
    , http-client
    , http-client-tls >=0.3.6.2
    , http-conduit
    , http-download >=0.2.1.0
    , http-types
    , internal
    , memory
    , mtl
    , network-uri
    , pantry
    , path
    , path-io
    , persistent
    , persistent-sqlite >=2.9.3
    , persistent-template
    , primitive
    , raw-strings-qq
    , resourcet
    , rio
    , rio-orphans
    , rio-prettyprint >=0.1.7.0
    , static-bytes
    , tar-conduit >=0.4.0
    , text
    , text-metrics
    , time
    , transformers
    , unix-compat
    , unliftio
    , unordered-containers
    , vector
    , yaml
    , zip-archive
  default-language: Haskell2010
  if impl(ghc >= 9.4.5) && os(windows)
    build-depends:
        network >=3.1.2.9