packages feed

telegraph-0.1.0: telegraph.cabal

cabal-version:   3.0
name:            telegraph
version:         0.1.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:       alpha
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:
    , aeson                 ^>=1.5.4
    , base                  >=4.10    && <5
    , bytestring            >=0.10.12 && <0.12
    , conduit               ^>=1.3.4
    , deriving-aeson        ^>=0.2.6
    , exceptions            ^>=0.10.4
    , generic-data-surgery  ^>=0.3.0
    , http-client           >=0.6.4   && <=0.8
    , http-conduit          ^>=2.3.7
    , monad-control         ^>=1.0.2
    , mtl                   ^>=2.2.2
    , text                  ^>=1.2.4
    , transformers-base     ^>=0.4.5

  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:
  exposed-modules:
    Web.Telegraph.API
    Web.Telegraph.Types

  other-modules:
  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