packages feed

hs-hath-1.3.0: hs-hath.cabal

cabal-version: 2.0

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

name:           hs-hath
version:        1.3.0
synopsis:       A Haskell implementation of the Hentai@Home client
description:    Please see the README on GitHub at <https://github.com/pe200012/hs-hath#readme>
category:       Web
homepage:       https://github.com/pe200012/hs-hath#readme
bug-reports:    https://github.com/pe200012/hs-hath/issues
author:         pe200012
maintainer:     1326263755@qq.com
copyright:      2024-2026 pe200012
license:        GPL-3
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.12.2
extra-source-files:
    README.md
    vendor/cryptostore-0.3.0.1/LICENSE
    vendor/minio-hs-1.7.0/LICENSE
    vendor/warp-tls-3.4.18/LICENSE
    vendor/warp-tls-3.4.18/certificate.pem
    vendor/warp-tls-3.4.18/key.pem
extra-doc-files:
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/pe200012/hs-hath

library
  exposed-modules:
      Hath.AtomicFile
      Hath.Cache
      Hath.Cache.Filesystem
      Hath.Cache.R2
      Hath.Cache.SQLite
      Hath.CLI
      Hath.Config
      Hath.Download
      Hath.Error
      Hath.FileURI
      Hath.Gallery
      Hath.Gallery.Downloader
      Hath.Locate
      Hath.Log
      Hath.Protocol
      Hath.RPC
      Hath.Server
      Hath.Server.API
      Hath.Server.App
      Hath.Server.ConnectionLimit
      Hath.Server.FloodControl
      Hath.Server.Handlers
      Hath.Server.LegacyCiphers
      Hath.Server.Middleware
      Hath.ServerTime
      Hath.Settings
      Hath.Stats
      Hath.Version
  other-modules:
      Paths_hs_hath
  autogen-modules:
      Paths_hs_hath
  hs-source-dirs:
      src
  default-extensions:
      NoImplicitPrelude
      OverloadedStrings
      QuasiQuotes
      LambdaCase
      GADTs
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      base >=4.7 && <4.22
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hourglass ==0.2.*
    , hs-hath-cryptostore
    , hs-hath-minio
    , hs-hath-warp-tls
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021

library hs-hath-cryptostore
  exposed-modules:
      Crypto.Store.ASN1.Generate
      Crypto.Store.ASN1.Parse
      Crypto.Store.Cipher.RC2
      Crypto.Store.Cipher.RC2.Primitive
      Crypto.Store.CMS
      Crypto.Store.CMS.Algorithms
      Crypto.Store.CMS.Attribute
      Crypto.Store.CMS.Authenticated
      Crypto.Store.CMS.AuthEnveloped
      Crypto.Store.CMS.Digested
      Crypto.Store.CMS.Encrypted
      Crypto.Store.CMS.Enveloped
      Crypto.Store.CMS.Info
      Crypto.Store.CMS.OriginatorInfo
      Crypto.Store.CMS.PEM
      Crypto.Store.CMS.Signed
      Crypto.Store.CMS.Type
      Crypto.Store.CMS.Util
      Crypto.Store.Error
      Crypto.Store.KeyWrap.AES
      Crypto.Store.KeyWrap.RC2
      Crypto.Store.KeyWrap.TripleDES
      Crypto.Store.PEM
      Crypto.Store.PKCS12
      Crypto.Store.PKCS5
      Crypto.Store.PKCS5.PBES1
      Crypto.Store.PKCS8
      Crypto.Store.PKCS8.EC
      Crypto.Store.Util
      Crypto.Store.X509
  other-modules:
      Paths_hs_hath
  autogen-modules:
      Paths_hs_hath
  hs-source-dirs:
      vendor/cryptostore-0.3.0.1/src
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -w
  build-depends:
      asn1-encoding ==0.9.*
    , asn1-types >=0.3.1 && <0.4
    , base >=4.7 && <4.22
    , basement >=0.0.16 && <0.1
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , crypton-x509-validation ==1.6.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hourglass ==0.2.*
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , pem >=0.1 && <0.3
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021

library hs-hath-minio
  exposed-modules:
      Lib.Prelude
      Network.Minio
      Network.Minio.AdminAPI
      Network.Minio.API
      Network.Minio.APICommon
      Network.Minio.CopyObject
      Network.Minio.Credentials
      Network.Minio.Credentials.AssumeRole
      Network.Minio.Credentials.Types
      Network.Minio.Data
      Network.Minio.Data.ByteString
      Network.Minio.Data.Crypto
      Network.Minio.Data.Time
      Network.Minio.Errors
      Network.Minio.JsonParser
      Network.Minio.ListOps
      Network.Minio.PresignedOperations
      Network.Minio.PutObject
      Network.Minio.S3API
      Network.Minio.SelectAPI
      Network.Minio.Sign.V4
      Network.Minio.Utils
      Network.Minio.XmlCommon
      Network.Minio.XmlGenerator
      Network.Minio.XmlParser
  other-modules:
      Paths_hs_hath
  autogen-modules:
      Paths_hs_hath
  hs-source-dirs:
      vendor/minio-hs-1.7.0/src
  default-extensions:
      BangPatterns
      DerivingStrategies
      FlexibleContexts
      FlexibleInstances
      LambdaCase
      MultiParamTypeClasses
      MultiWayIf
      OverloadedStrings
      RankNTypes
      ScopedTypeVariables
      TupleSections
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      aeson >=1 && <3
    , base >=4.7 && <5
    , base64 >=0 && <2
    , base64-bytestring ==1.*
    , binary ==0.*
    , bytestring >=0.11 && <0.13
    , case-insensitive ==1.*
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.*
    , conduit-extra ==1.*
    , containers >=0.6 && <0.8
    , crypton >=0 && <2
    , crypton-connection ==0.*
    , crypton-x509 ==1.7.*
    , data-default-class ==0.*
    , dhall ==1.42.*
    , digest ==0.*
    , directory ==1.*
    , filepath >=1.4 && <1.6
    , http-client ==0.*
    , http-client-tls ==0.*
    , http-conduit ==2.*
    , http-types ==0.*
    , ini ==0.*
    , lrucache ==1.2.*
    , memory ==0.*
    , network >=3.1 && <3.3
    , network-uri ==2.*
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.*
    , resourcet ==1.*
    , retry ==0.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=1 && <3
    , time ==1.*
    , time-units ==1.*
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , transformers ==0.*
    , unix ==2.8.*
    , unliftio ==0.*
    , unliftio-core ==0.*
    , unordered-containers ==0.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
    , xml-conduit ==1.*
  mixins:
      base hiding (Prelude)
    , base64 hiding (Data.ByteString.Base64)
    , relude (Relude as Prelude)
    , relude 
  default-language: GHC2021

library hs-hath-warp-tls
  exposed-modules:
      Network.Wai.Handler.WarpTLS
      Network.Wai.Handler.WarpTLS.Internal
  other-modules:
      Paths_hs_hath
  autogen-modules:
      Paths_hs_hath
  hs-source-dirs:
      vendor/warp-tls-3.4.18
  default-extensions:
      Strict
      StrictData
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      base >=4.7 && <4.22
    , bytestring >=0.9 && <1
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.2.12 && <4
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , recv >=0.1.0 && <0.2
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , stm >=2.3 && <3
    , streaming-commons ==0.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=1 && <3
    , time >=1.12 && <1.15
    , tls >=2.1.3 && <2.6
    , tls-session-manager >=0.0.4 && <1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp >=3.3.29 && <3.6
  default-language: GHC2021

executable hath-bench
  main-is: Bench.hs
  hs-source-dirs:
      app
  default-extensions:
      NoImplicitPrelude
      OverloadedStrings
      QuasiQuotes
      LambdaCase
      GADTs
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -main-is Bench
  build-depends:
      base >=4.7 && <4.22
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-connection ==0.4.*
    , crypton-x509 ==1.7.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hs-hath
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021

executable hs-hath
  main-is: Main.hs
  hs-source-dirs:
      app
  default-extensions:
      NoImplicitPrelude
      OverloadedStrings
      QuasiQuotes
      LambdaCase
      GADTs
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -fpedantic-bottoms
  build-depends:
      base >=4.7 && <4.22
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hs-hath
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021

executable migrate-to-r2
  main-is: Migrate.hs
  hs-source-dirs:
      app
  default-extensions:
      NoImplicitPrelude
      OverloadedStrings
      QuasiQuotes
      LambdaCase
      GADTs
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -main-is Migrate
  build-depends:
      base >=4.7 && <4.22
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hs-hath
    , hs-hath-minio
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021

test-suite hs-hath-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      APISpec
      ConnectionLimitSpec
      FilesystemSpec
      FileURISpec
      FloodControlSpec
      GallerySpec
      Integration
      LocateSpec
      MockRPC
      ProtocolSpec
      R2Spec
      RPCSpec
      SQLiteSpec
      Paths_hs_hath
  autogen-modules:
      Paths_hs_hath
  hs-source-dirs:
      test
  default-extensions:
      NoImplicitPrelude
      OverloadedStrings
      QuasiQuotes
      LambdaCase
      GADTs
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      QuickCheck >=2.14 && <2.17
    , base >=4.7 && <4.22
    , bytestring >=0.11 && <0.13
    , co-log >=0.6 && <0.8
    , co-log-polysemy >=0.0.1.5 && <0.0.2
    , conduit ==1.3.*
    , containers >=0.6 && <0.8
    , crypton ==1.0.*
    , crypton-x509 ==1.7.*
    , crypton-x509-store ==1.6.*
    , dhall ==1.42.*
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hs-hath
    , hspec ==2.11.*
    , http-client ==0.7.*
    , http-client-tls ==0.3.*
    , http-types ==0.12.*
    , lrucache ==1.2.*
    , memory ==0.18.*
    , network >=3.1 && <3.3
    , optparse-applicative ==0.18.*
    , polysemy ==1.9.*
    , process ==1.6.*
    , relude ==1.2.*
    , sqlite-simple ==0.4.*
    , string-interpolate ==0.3.*
    , template-haskell >=2.19 && <2.24
    , temporary ==1.3.*
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , tls >=2.0 && <2.4
    , tls-session-manager >=0.0.5 && <0.1
    , unix ==2.8.*
    , unliftio ==0.2.*
    , wai ==3.2.*
    , wai-extra ==3.1.*
    , warp ==3.4.*
  default-language: GHC2021