packages feed

unleash-client-haskell-0.8.0: unleash-client-haskell.cabal

cabal-version:      3.0
name:               unleash-client-haskell
version:            0.8.0
synopsis:           Unleash feature toggle client
description:
  This is an [Unleash](https://www.getunleash.io/) client SDK for Haskell.

  'Unleash.Client' provides a stateful HTTP client with functions and types for:

      - Client configuration
      - Client registration
      - Fetching feature toggles
      - Fetching variants
      - Sending metrics

  See [the source repo](https://github.com/finn-no/unleash-client-haskell) for more information and example usage.

category:           Web
author:             FINN.no
homepage:           https://github.com/finn-no/unleash-client-haskell
maintainer:         See README.md
license:            MIT
copyright:          Copyright © FINN.no AS, Inc. All rights reserved.
extra-doc-files:    CHANGELOG.md
extra-source-files: README.md

source-repository head
  type:     git
  location: https://github.com/finn-no/unleash-client-haskell

common all
  default-extensions:
    BlockArguments
    DataKinds
    DeriveFoldable
    DeriveFunctor
    DeriveTraversable
    DerivingStrategies
    DuplicateRecordFields
    ExplicitNamespaces
    FlexibleInstances
    LambdaCase
    MultiParamTypeClasses
    OverloadedRecordDot
    OverloadedStrings
    RankNTypes
    ScopedTypeVariables
    TypeApplications
    TypeOperators

  ghc-options:
    -W -Wno-unused-top-binds -Wredundant-constraints -Wunused-packages
    -haddock

  default-language:   Haskell2010

library
  import:          all
  exposed-modules: Unleash.Client
  other-modules:
    Paths_unleash_client_haskell
    Unleash.Internal.HttpClient

  autogen-modules: Paths_unleash_client_haskell
  hs-source-dirs:  src
  build-depends:
    , aeson                        >=2.0.3  && <2.3
    , base                         >=4.7    && <5
    , containers                   >=0.6.4  && <0.7
    , http-client-tls              >=0.3.6  && <0.4
    , http-media                   >=0.8.0  && <0.9
    , mtl                          >=2.2.2  && <2.4
    , servant                      >=0.19.1 && <0.21
    , servant-client               >=0.19   && <0.21
    , text                         >=1.2.5  && <2.2
    , time                         >=1.9.3  && <1.13
    , unleash-client-haskell-core  >=0.12.0 && <0.13

executable example
  import:         all
  main-is:        Main.hs
  hs-source-dirs: example
  build-depends:
    , base
    , mtl
    , servant-client
    , text
    , unleash-client-haskell
    , unliftio                >=0.2.23 && <0.3