packages feed

telegraph-1.2.0: telegraph.cabal

cabal-version:   3.0
name:            telegraph
version:         1.2.0
synopsis:        Binding to the telegraph API
description:     Binding to the telegraph API
category:        Web
license:         BSD-3-Clause
license-file:    LICENSE
author:          Poscat
maintainer:      Poscat <poscat@mail.poscat.moe>
copyright:       Copyright (c) Poscat 2021
stability:       experimental
homepage:        https://github.com/poscat0x04/telegraph
bug-reports:     https://github.com/poscat0x04/telegraph/issues
extra-doc-files:
  CHANGELOG.md
  README.md

common common-attrs
  build-depends:
    , base            >=4.10  && <5
    , http-client     >=0.6.4 && <=0.8
    , in-other-words  ^>=0.2.0

  default-language:   Haskell2010
  default-extensions:
    NoStarIsType
    BangPatterns
    ConstraintKinds
    DataKinds
    DeriveFoldable
    DeriveFunctor
    DeriveGeneric
    DeriveTraversable
    DuplicateRecordFields
    EmptyCase
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    InstanceSigs
    KindSignatures
    LambdaCase
    MultiWayIf
    OverloadedStrings
    PartialTypeSignatures
    PatternSynonyms
    RecordWildCards
    ScopedTypeVariables
    TupleSections
    TypeApplications
    TypeFamilies
    TypeOperators
    UnicodeSyntax
    ViewPatterns

library
  import:          common-attrs
  build-depends:
    , aeson                 >=1.4.7   && <1.6
    , bytestring            >=0.10.12 && <0.12
    , conduit               ^>=1.3.4
    , generic-data-surgery  ^>=0.3.0
    , http-conduit          ^>=2.3.7
    , mtl                   ^>=2.2.2
    , optics-th             ^>=0.3
    , text                  ^>=1.2.4

  exposed-modules:
    Web.Telegraph.API
    Web.Telegraph.Types

  other-modules:
    Control.Effect.Telegraph
    Web.Telegraph.Utils
  hs-source-dirs:  src

test-suite telegraph-test
  import:         common-attrs
  type:           exitcode-stdio-1.0
  build-depends:
    , http-client-tls
    , telegraph

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

source-repository head
  type:     git
  location: https://github.com/poscat0x04/telegraph