2015-07-22 12:55:44 +02:00
|
|
|
name: servant-js
|
2016-09-02 18:09:47 +02:00
|
|
|
version: 0.8.1
|
2015-07-22 12:55:44 +02:00
|
|
|
synopsis: Automatically derive javascript functions to query servant webservices.
|
2014-12-08 12:01:56 +01:00
|
|
|
description:
|
2015-11-02 19:55:13 +01:00
|
|
|
Automatically derive javascript functions to query servant webservices.
|
2014-12-08 12:01:56 +01:00
|
|
|
.
|
2015-11-02 19:55:13 +01:00
|
|
|
Supports deriving functions using vanilla javascript AJAX requests, Angulari, Axios or JQuery.
|
2015-07-22 12:55:44 +02:00
|
|
|
.
|
2015-11-02 19:55:13 +01:00
|
|
|
You can find an example <https://github.com/haskell-servant/servant/blob/master/servant-js/examples/counter.hs here>
|
2015-04-20 15:55:41 +02:00
|
|
|
which serves the generated javascript to a webpage that allows you to trigger
|
|
|
|
webservice calls.
|
2015-04-20 16:00:51 +02:00
|
|
|
.
|
2015-11-02 19:55:13 +01:00
|
|
|
<https://github.com/haskell-servant/servant/blob/master/servant-js/CHANGELOG.md CHANGELOG>
|
2014-11-25 01:36:34 +01:00
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
2016-01-20 16:58:29 +01:00
|
|
|
author: Servant Contributors
|
|
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
|
|
copyright: 2015-2016 Servant Contributors
|
2014-11-25 01:36:34 +01:00
|
|
|
category: Web
|
|
|
|
build-type: Simple
|
|
|
|
cabal-version: >=1.10
|
2016-04-21 12:22:54 +02:00
|
|
|
homepage: http://haskell-servant.readthedocs.org/
|
2015-04-20 15:55:41 +02:00
|
|
|
Bug-reports: http://github.com/haskell-servant/servant/issues
|
2015-01-04 17:41:51 +01:00
|
|
|
extra-source-files:
|
2016-01-05 05:05:05 +01:00
|
|
|
include/*.h
|
2015-01-04 17:41:51 +01:00
|
|
|
CHANGELOG.md
|
|
|
|
README.md
|
2014-12-08 12:01:56 +01:00
|
|
|
source-repository head
|
|
|
|
type: git
|
2015-04-20 15:55:41 +02:00
|
|
|
location: http://github.com/haskell-servant/servant.git
|
2014-11-25 01:36:34 +01:00
|
|
|
|
2014-12-10 16:29:50 +01:00
|
|
|
flag example
|
|
|
|
description: Build the example too
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2014-11-25 01:36:34 +01:00
|
|
|
library
|
2015-07-22 12:55:44 +02:00
|
|
|
exposed-modules: Servant.JS
|
|
|
|
Servant.JS.Angular
|
2015-07-27 16:29:08 +02:00
|
|
|
Servant.JS.Axios
|
2015-09-21 12:31:00 +02:00
|
|
|
Servant.JS.Internal
|
2015-07-22 12:55:44 +02:00
|
|
|
Servant.JS.JQuery
|
|
|
|
Servant.JS.Vanilla
|
2015-09-22 21:28:02 +02:00
|
|
|
build-depends: base >= 4.5 && <5
|
2016-03-12 10:45:04 +01:00
|
|
|
, base-compat >= 0.9
|
2015-09-22 21:28:02 +02:00
|
|
|
, charset >= 0.3
|
|
|
|
, lens >= 4
|
2016-07-10 14:10:27 +02:00
|
|
|
, servant-foreign == 0.8.*
|
|
|
|
, servant == 0.8.*
|
2015-09-22 21:28:02 +02:00
|
|
|
, text >= 1.2 && < 1.3
|
|
|
|
|
2014-11-25 01:36:34 +01:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2014-12-08 12:01:56 +01:00
|
|
|
ghc-options: -Wall
|
2015-12-27 17:54:29 +01:00
|
|
|
include-dirs: include
|
2014-11-25 01:36:34 +01:00
|
|
|
|
2014-11-25 19:42:52 +01:00
|
|
|
executable counter
|
|
|
|
main-is: counter.hs
|
2016-04-18 12:07:23 +02:00
|
|
|
ghc-options: -Wall
|
2014-11-25 19:42:52 +01:00
|
|
|
hs-source-dirs: examples
|
2014-12-24 13:55:25 +01:00
|
|
|
|
2014-12-10 16:29:50 +01:00
|
|
|
if flag(example)
|
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
|
|
|
|
2015-09-22 21:28:02 +02:00
|
|
|
build-depends: base >= 4.7 && < 5
|
2016-08-07 19:12:09 +02:00
|
|
|
, aeson >= 0.7 && < 1.1
|
2015-09-22 21:28:02 +02:00
|
|
|
, filepath >= 1
|
|
|
|
, lens >= 4
|
2016-07-10 14:10:27 +02:00
|
|
|
, servant == 0.8.*
|
|
|
|
, servant-server == 0.8.*
|
2015-09-21 12:31:00 +02:00
|
|
|
, servant-js
|
|
|
|
, stm
|
|
|
|
, transformers
|
|
|
|
, warp
|
2014-11-25 01:36:34 +01:00
|
|
|
default-language: Haskell2010
|
2014-12-24 13:55:25 +01:00
|
|
|
|
|
|
|
test-suite spec
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
ghc-options: -Wall
|
|
|
|
main-is: Spec.hs
|
2015-09-23 18:26:05 +02:00
|
|
|
other-modules:
|
|
|
|
Servant.JSSpec
|
|
|
|
Servant.JSSpec.CustomHeaders
|
2015-09-22 21:28:02 +02:00
|
|
|
build-depends: base
|
2016-03-12 10:45:04 +01:00
|
|
|
, base-compat
|
2015-09-21 12:31:00 +02:00
|
|
|
, hspec >= 2.1.8
|
|
|
|
, hspec-expectations
|
|
|
|
, language-ecmascript >= 0.16
|
2015-09-22 21:28:02 +02:00
|
|
|
, lens
|
2015-09-21 12:31:00 +02:00
|
|
|
, servant
|
|
|
|
, servant-js
|
2015-09-22 12:17:43 +02:00
|
|
|
, text
|
2015-09-21 12:31:00 +02:00
|
|
|
default-language: Haskell2010
|