Arian van Putten
05379ed7e3
Replace all occurances of () with NoContent
...
We use NoContent to signify an empty response nowadays. This commit
replaces all occurences of () with NoContent so that all packages use
the new semantics.
2016-07-10 16:58:59 +02:00
Sönke Hahn
5effdfdbbb
Rename type variables 'layout' and 'sublayout' to 'api'
2016-07-03 22:46:46 +08:00
Sönke Hahn
b26bbfccda
travis: enable -Wall -Werror
2016-04-21 13:06:10 +08:00
Rémi Vion
c3bb14fb26
remove redundant import to remove warnings
2016-04-13 15:41:51 +02:00
Rémi Vion
96abac7ef2
remove duplicated HeaderArg export
...
it is also 2 lines below
2016-04-13 15:41:28 +02:00
Steve Purcell
5188e842a9
[servant-foreign] Parameterise type classes with a foreign representation type
...
We allow a user-specified type to represent the foreign type of haskell
types encountered in the API. This lets users map Integer, Date etc. to
representations other than Text, and have those representations
available in the returned list of Req.
For example, we might want to map a type which has an instance of
Generic to both a foreign type name and a class declaration for that
foreign type such that it can encode/decode itself to JSON. The previous
limitation to a single Text output prevented this case.
2016-03-14 10:34:53 +13:00
Steve Purcell
207f05e759
[servant-foreign] Parameterise Req with a foreign type
2016-03-13 18:35:49 +13:00
Steve Purcell
bfe812f5d9
[servant-foreign] Normalise names of arg field accessors
2016-03-13 17:27:31 +13:00
Denis Redozubov
d8e98a1f16
fix lens export mismatch
2016-03-12 13:59:40 +03:00
Denis Redozubov
e5635a044e
use newtypes in servant-foreign
2016-03-12 12:51:22 +03:00
Denis Redozubov
e6e13fde84
Make servant-foreign code nicer
...
* non-messy imports
* got rid of most long lines (>80 chars)
* prisms for sum types and newtypes(we use lens anyway, so why not)
* consistent indentation
2016-02-11 15:26:01 +03:00
Julian K. Arni
bd77b4acba
Verb for -mock, -js and -foreign.
2016-01-07 13:47:08 +01:00
Arian van Putten
82fa23507f
Add 205
2015-12-27 17:23:46 +01:00
Arian van Putten
a15d1d9314
Fix 294
2015-12-27 14:05:32 +01:00
Arian van Putten
cf475c26c9
WIP: Fix issue #285
2015-12-06 12:40:27 +01:00
Arian van Putten
60f1ddb89e
WIP: Fix issue #285
2015-12-06 12:22:18 +01:00
Maksymilian Owsianny
721151a32d
Added default NoTypes parameter for dynamic languages.
2015-12-02 15:56:56 +00:00
Maksymilian Owsianny
0c0c382ae6
Fix broken servant-js tests.
2015-12-02 13:22:01 +00:00
Maksymilian Owsianny
2d8db45907
Moved GenerateList to servant-foreign.
2015-12-02 11:21:37 +00:00
Maksymilian Owsianny
69f09f2622
Added lang parameter.
2015-11-29 04:53:50 +00:00
Maksymilian Owsianny
0b37222733
Fix servant-js based on changes to servant-foreign.
2015-11-28 08:24:55 +00:00
Matt Bray
f2a91cfb1f
servant-js: export CommonGeneratorOptions constructors
...
Allow defCommonGeneratorOptions to be customized using record update
syntax.
Without the re-export, we can't do:
```
import qualified Servant.JS as SJS
myOptions =
SJS.defCommonGeneratorOptions
{ SJS.moduleName = "myModule"
, SJS.urlPrefix = "http://localhost "
}
```
2015-11-04 10:11:36 +00:00
Julian K. Arni
ec55f4b981
Remove Matrix params.
...
For servant-docs, -foreign, -js, and -mock.
2015-10-13 21:37:07 +02:00
Arian van Putten
1e0fa95620
Make charset lookups more efficient
2015-10-04 23:32:31 +02:00
Arian van Putten
984a76f0f8
Remove redundant comments
2015-10-04 23:27:28 +02:00
Arian van Putten
a62441077e
Convert servant-js to use text.
2015-10-02 13:59:54 +02:00
Julian K. Arni
487f323f2f
More Werror fixes
2015-09-23 20:30:45 +02:00
Julian K. Arni
965063171b
Janitoring
2015-09-23 20:18:52 +02:00
Denis Redozubov
b59a62e012
no opinion on valid function names in servant-foreign
2015-09-22 14:02:30 +03:00
Denis Redozubov
7ff9e52a50
CommonGeneratorOptions moved to servant-js
2015-09-22 12:21:04 +03:00
Denis Redozubov
ce3e4f7193
Extract common code-generation stuff to servant-foreign
2015-09-21 20:59:09 +03:00
Sönke Hahn
ba918c720f
fix for lens-4.13
2015-09-15 22:13:00 +08:00
Julian K. Arni
6eb7add53a
stylish haskell changes
...
And import fix.
2015-08-18 00:07:12 +02:00
Julian K. Arni
98b6e85128
Contributing
2015-08-17 23:50:42 +02:00
Freezeboy
b769ddc32b
Fix GenerateList to let the API be nested
2015-08-05 21:01:33 +02:00
Alp Mestanogullari
3dc304b8d7
Merge pull request #173 from freezeboy/axios
...
servant-js: Add support for the Axios JS library
2015-07-29 14:10:41 +02:00
Alp Mestanogullari
dc902e2f58
Merge pull request #171 from freezeboy/transform-function-name
...
Replace functionName with an array, and use functionRenamer to build …
2015-07-29 12:03:18 +02:00
Freezeboy
116d7bf22b
Add capture in function name
2015-07-28 19:47:41 +02:00
Freezeboy
4cab814e17
Add urlPrefix support for Axios
2015-07-28 16:47:19 +02:00
Freezeboy
2c0fe980eb
Rename also function name transformer for Axios
2015-07-28 16:46:00 +02:00
Freezeboy
ef13160d8b
Rename functionRenamer and default to CameCase
2015-07-28 16:41:07 +02:00
Freezeboy
60d94be0e9
Add a configuration mapping to Axios
2015-07-28 15:06:00 +02:00
Freezeboy
522dc3c2cb
Axios fix the request body
2015-07-28 11:33:36 +02:00
Freezeboy
17ca343b45
Update example with Axios version
2015-07-28 01:25:00 +02:00
Freezeboy
3ff1f5c953
Update tests for Axios
2015-07-27 16:49:52 +02:00
Freezeboy
4362112f31
Add preliminary Axios support
2015-07-27 16:29:08 +02:00
Freezeboy
8b927e7f0d
Add urlPrefix to CommonGeneratorOptions
2015-07-27 15:21:58 +02:00
Freezeboy
c01ad63112
Replace functionName with an array, and use functionRenamer to build the real function name
2015-07-27 13:55:30 +02:00
Alp Mestanogullari
a2a4665951
clean up servant-js significantly, simplify the API of the library a lot and document @freezeboy's sweet generators from #159 a bit in the main module of the library, Servant.JS along with how people should use the library.
2015-07-22 19:25:02 +02:00
Alp Mestanogullari
eabf13ebdb
rename servant-jquery to servant-js, Servant.JQuery to Servant.JS
2015-07-22 19:25:02 +02:00