packages feed

twirp-0.2.0.0: twirp.cabal

cabal-version:  2.4

name:           twirp
version:        0.2.0.0
synopsis:       Haskell twirp foundations
description:    Please see the README on GitHub at <https://github.com/tclem/twirp-haskell#readme>
homepage:       https://github.com/tclem/twirp-haskell#readme
bug-reports:    https://github.com/tclem/twirp-haskell/issues
license:        BSD-3-Clause
license-file:   LICENSE
author:         Timothy Clem
maintainer:     timothy.clem@gmail.com
copyright:      2019 Timothy Clem
category:       Web
build-type:     Simple
extra-source-files: README.md

tested-with:    GHC == 8.6.5

-- GHC extensions shared between targets
common haskell
  default-language:    Haskell2010
  default-extensions:  DataKinds
                     , DeriveFoldable
                     , DeriveFunctor
                     , DeriveGeneric
                     , DeriveTraversable
                     , FlexibleContexts
                     , FlexibleInstances
                     , MultiParamTypeClasses
                     , OverloadedStrings
                     , RecordWildCards
                     , StandaloneDeriving
                     , StrictData
                     , TypeApplications
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints

common dependencies
  build-depends:
      base >=4.7 && <5
    , aeson ^>= 1.4.5.0
    , bytestring >= 0.10.8
    , http-media >= 0.8.0.0
    , http-types >= 0.12.3
    , proto-lens >= 0.5.0.0
    , proto-lens-jsonpb >= 0.2.0.0
    , proto-lens-runtime >= 0.5 && <0.7
    , servant ^>= 0.16.2
    , text ^>= 1.2.4.0
    , wai ^>= 3.2.2.1

library
  import: haskell, dependencies
  exposed-modules:
      Twirp
      Twirp.Middleware.Errors
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
  build-depends:

test-suite twirp-test
  import: haskell, dependencies
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      twirp

source-repository head
  type: git
  location: https://github.com/tclem/twirp-haskell