packages feed

arch-web-0.3.2: arch-web.cabal

cabal-version:      2.2
name:               arch-web
version:            0.3.2
synopsis:           Arch Linux official and AUR web interface binding
description:
  Arch Linux official and AUR web interface binding.
  See README for details.

extra-source-files: data/KNOWN_SPDX.json
category:           Web
license:            MIT
license-file:       LICENSE
author:             berberman
maintainer:         berberman <berberman@yandex.com>
copyright:          Copyright (c) berberman 2020-2025
stability:          alpha
homepage:           https://github.com/berberman/arch-web
bug-reports:        https://github.com/berberman/arch-web/issues
extra-doc-files:
  CHANGELOG.md
  README.md

tested-with:        GHC ==9.2.8 || ==9.8.4

common common
  build-depends:
    , aeson                ^>=1.5.4  || ^>=2.0 || ^>=2.1 || ^>=2.2
    , base                 >=4.10    && <5
    , bytestring
    , containers
    , deriving-aeson       ^>=0.2
    , directory
    , exceptions           ^>=0.10
    , filepath
    , http-client          ^>=0.6    || ^>=0.7
    , http-client-tls      ^>=0.3
    , http-types           ^>=0.12
    , lens                 ^>=4.19.2 || ^>=5   || ^>=5.1 || ^>=5.2 || ^>=5.3
    , mtl
    , servant              >=0.18    && <0.21
    , servant-client       >=0.18    && <0.21
    , servant-client-core  >=0.18    && <0.21
    , template-haskell     >=2.18
    , text
    , time

  default-language:   Haskell2010
  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-uni-patterns
    -Wincomplete-record-updates -Wredundant-constraints
    -fhide-source-paths -Wmissing-export-lists
    -Wmissing-deriving-strategies

  default-extensions:
    ConstraintKinds
    DataKinds
    DeriveAnyClass
    DeriveFunctor
    DeriveGeneric
    DerivingStrategies
    DerivingVia
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    KindSignatures
    LambdaCase
    NoStarIsType
    OverloadedStrings
    RecordWildCards
    ScopedTypeVariables
    TypeApplications
    TypeFamilies
    TypeOperators
    ViewPatterns

library
  import:          common
  exposed-modules:
    Web.ArchLinux
    Web.ArchLinux.API
    Web.ArchLinux.Types
    Web.ArchLinux.Types.Lens

  other-modules:
    Web.ArchLinux.Internal.KnownSPDXLoader
    Web.ArchLinux.Types.API

  hs-source-dirs:  src

test-suite arch-web-test
  import:         common
  type:           exitcode-stdio-1.0
  build-depends:
    , arch-web
    , HUnit

  hs-source-dirs: test
  main-is:        Main.hs

source-repository head
  type:     git
  location: https://github.com/berberman/arch-web