bc3f61d615
Changes Header, ReqBody and QueryParam to take a modifier list. Resolves https://github.com/haskell-servant/servant/issues/856 ResponseHeader story turns to be somewhat ugly, but it can be made elegant when https://github.com/haskell-servant/servant/issues/841 is implemnted, then we can omit HList aka Header Heterogenous List implementation. - servant-server changes: Writing server side intepretations is quite simple using `unfoldRequestArgument`, which makes Header and QueryParam look quite the same. `ReqBody` cannot be easily made optional with current design (what that would mean: No Content-Type Header?), so that dimensions isn't used there. - Add HasLink for all the rest ComprehensiveAPI combinators - Add 'tricky' Header', QueryParam' endpoints to ComprehensiveAPI - servant-docs: Quick'n'dirty implementation. Don't use modifiers information (yet).
65 lines
2.3 KiB
Text
65 lines
2.3 KiB
Text
name: servant-foreign
|
|
version: 0.11
|
|
synopsis: Helpers for generating clients for servant APIs in any programming language
|
|
description:
|
|
Helper types and functions for generating client functions for servant APIs in any programming language
|
|
.
|
|
This package provides types and functions that collect all the data needed to generate client functions in the programming language of your choice. This effectively means you only have to write the code that "pretty-prints" this data as some code in your target language.
|
|
.
|
|
See the servant-js package for an example
|
|
.
|
|
<https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md CHANGELOG>
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Servant Contributors
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
copyright: 2015-2016 Servant Contributors
|
|
category: Servant, Web
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
extra-source-files:
|
|
include/*.h
|
|
CHANGELOG.md
|
|
README.md
|
|
bug-reports: http://github.com/haskell-servant/servant/issues
|
|
tested-with:
|
|
GHC==7.8.4
|
|
GHC==7.10.3
|
|
GHC==8.0.2
|
|
GHC==8.2.2
|
|
|
|
source-repository head
|
|
type: git
|
|
location: http://github.com/haskell-servant/servant.git
|
|
|
|
library
|
|
exposed-modules: Servant.Foreign
|
|
, Servant.Foreign.Internal
|
|
, Servant.Foreign.Inflections
|
|
build-depends: base >= 4.7 && <4.11
|
|
, base-compat >= 0.9.3 && <0.10
|
|
, lens == 4.*
|
|
, servant == 0.12.*
|
|
, text >= 1.2 && < 1.3
|
|
, http-types
|
|
hs-source-dirs: src
|
|
default-language: Haskell2010
|
|
ghc-options: -Wall
|
|
if impl(ghc >= 8.0)
|
|
ghc-options: -Wno-redundant-constraints
|
|
include-dirs: include
|
|
|
|
test-suite spec
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: test
|
|
ghc-options: -Wall
|
|
include-dirs: include
|
|
main-is: Spec.hs
|
|
other-modules: Servant.ForeignSpec
|
|
build-tool-depends:
|
|
hspec-discover:hspec-discover
|
|
build-depends: base
|
|
, hspec >= 2.1.8
|
|
, servant
|
|
, servant-foreign
|
|
default-language: Haskell2010
|