packages feed

webgear-server-0.1.0: webgear-server.cabal

cabal-version:       2.4
name:                webgear-server
version:             0.1.0
synopsis:            Composable, type-safe library to build HTTP API servers
description:
        WebGear is a library to for building composable, type-safe HTTP API servers.

        WebGear focuses on good documentation and usability.

        See the documentation of WebGear module to get started.
homepage:            https://github.com/rkaippully/webgear#readme
bug-reports:         https://github.com/rkaippully/webgear/issues
author:              Raghu Kaippully
maintainer:          rkaippully@gmail.com
copyright:           2020 Raghu Kaippully
license:             MPL-2.0
license-file:        LICENSE
category:            Web
build-type:          Simple
extra-source-files:  README.md
                     ChangeLog.md


source-repository head
  type:      git
  location:  https://github.com/rkaippully/webgear


common webgear-common
  default-language:   Haskell2010
  default-extensions: ApplicativeDo
                      BangPatterns
                      ConstraintKinds
                      DataKinds
                      DefaultSignatures
                      DeriveAnyClass
                      DeriveFoldable
                      DeriveFunctor
                      DeriveGeneric
                      DeriveLift
                      DeriveTraversable
                      DerivingStrategies
                      DerivingVia
                      EmptyCase
                      ExistentialQuantification
                      FlexibleContexts
                      FlexibleInstances
                      FunctionalDependencies
                      GADTs
                      GeneralizedNewtypeDeriving
                      InstanceSigs
                      KindSignatures
                      LambdaCase
                      MultiParamTypeClasses
                      MultiWayIf
                      NamedFieldPuns
                      OverloadedStrings
                      PatternSynonyms
                      PolyKinds
                      RankNTypes
                      RecordWildCards
                      ScopedTypeVariables
                      StandaloneDeriving
                      TemplateHaskell
                      TupleSections
                      TypeApplications
                      TypeFamilies
                      TypeFamilyDependencies
                      TypeOperators
  build-depends:      base                  >=4.13.0.0 && <5
                    , template-haskell      >=2.15.0.0 && <3
                    , mtl                   ==2.2.*
                    , unordered-containers  ==0.2.*
                    , wai                   ==3.2.*
                    , bytestring            ==0.10.*
                    , text                  ==1.2.*
                    , http-types            ==0.12.*
                    , http-api-data         ==0.4.*
                    , aeson                 ==1.4.*
                    , tagged                ==0.8.*
  ghc-options:        -fwrite-ide-info
                      -hiedir=.hie
                      -Wall
                      -Wno-unticked-promoted-constructors
                      -Wincomplete-record-updates
                      -Wincomplete-uni-patterns
                      -Wredundant-constraints

library
  import:             webgear-common
  exposed-modules:    WebGear
                    , WebGear.Trait
                    , WebGear.Trait.Method
                    , WebGear.Trait.Header
                    , WebGear.Trait.Path
                    , WebGear.Trait.Body
                    , WebGear.Types
                    , WebGear.Route
                    , WebGear.Middlewares
                    , WebGear.Middlewares.Body
                    , WebGear.Middlewares.Header
                    , WebGear.Middlewares.Method
                    , WebGear.Middlewares.Path
  other-modules:      Paths_webgear_server
                    , WebGear.Util
  autogen-modules:    Paths_webgear_server
  hs-source-dirs:     src

test-suite webgear-server-test
  import:             webgear-common
  type:               exitcode-stdio-1.0
  main-is:            Main.hs
  other-modules:      Unit
                    , Unit.Trait.Header
                    , Unit.Trait.Path
                    , Properties
                    , Properties.Trait.Body
                    , Properties.Trait.Header
                    , Properties.Trait.Method
                    , Properties.Trait.Path
  hs-source-dirs:     test
  ghc-options:        -threaded
                      -rtsopts
                      -with-rtsopts=-N
  build-depends:      tasty                 ==1.2.*
                    , tasty-quickcheck      ==0.10.*
                    , tasty-hunit           ==0.10.*
                    , QuickCheck            ==2.13.*
                    , quickcheck-instances  ==0.3.*
                    , webgear-server