packages feed

arch-web-0.1.0: arch-web.cabal

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

category:        Web
license:         MIT
license-file:    LICENSE
author:          berberman
maintainer:      berberman <berberman@yandex.com>
copyright:       Copyright (c) berberman 2021
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 ==8.8.3 || ==8.8.4 || ==8.10.1 || ==8.10.2 || ==8.10.3

common common
  build-depends:
    , aeson                ^>=1.5.4
    , base                 >=4.10   && <5
    , deriving-aeson       ^>=0.2.6
    , exceptions           ^>=0.10.4
    , http-client          ^>=0.6.4
    , http-client-tls      ^>=0.3.5
    , http-types           ^>=0.12.3
    , lens                 ^>=4.19.2
    , mtl                  ^>=2.2.2
    , servant              ^>=0.18.2
    , servant-client       ^>=0.18.2
    , servant-client-core  ^>=0.18.2
    , text                 ^>=1.2.3
    , time                 ^>=1.9.3

  default-language:   Haskell2010
  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

  if impl(ghc >=8.8)
    ghc-options: -Wmissing-deriving-strategies

  default-extensions:
    NoStarIsType
    ConstraintKinds
    DataKinds
    DeriveAnyClass
    DeriveFunctor
    DeriveGeneric
    DerivingStrategies
    DerivingVia
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    KindSignatures
    LambdaCase
    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.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