Commit graph

13 commits

Author SHA1 Message Date
Julian K. Arni
2210e94727 prepare merge 2015-04-20 11:18:28 +02:00
Alp Mestanogullari
95a120f110 jsForAPI now needs to take into account Canonicalize 2015-04-20 10:21:03 +02:00
Alp Mestanogullari
0644c8dd79 canonicalize API type before generating jquery functions, flattening everything on the way 2015-04-20 09:59:03 +02:00
Alp Mestanogullari
21b6e96891 add a jsForAPI function that takes an API type proxy and generates js functions for each endpoint, collecting the result in a big String. fixes #12 2015-04-19 10:07:58 +02:00
Julian K. Arni
ad900cda51 More PR5 fixes 2015-04-08 12:08:18 +02:00
Geoffrey Roberts
745dbd09a9 Actually sanitise function names and handle X-Custom headers 2015-01-21 19:32:06 +11:00
Geoffrey Roberts
e16f90f107 Extended HeaderArg to allow header arguments to replace the contents of a template, allowing specially composed headers to create specially formatted headers 2015-01-21 18:27:25 +11:00
Alp Mestanogullari
c660b9cb0b -Wall police 2014-12-09 15:39:41 +01:00
Alp Mestanogullari
d760149ce0 put quotes around header name 2014-12-08 13:34:26 +01:00
Alp Mestanogullari
3d467cfab2 add jq support for Servant.API.Header 2014-12-08 13:32:47 +01:00
Alp Mestanogullari
3e76058d25 drop the dependency on interpolate and hence on haskell-src-exts, it's becoming too annoying to keep 2014-12-01 17:23:25 +01:00
Alp Mestanogullari
327006e25f add an example for servant-jquery: a shared counter whose value is updated via a button in an HTML page 2014-11-25 19:42:52 +01:00
Alp Mestanogullari
06d8c8005a first shot for jquery codegen based on a servant API type 2014-11-25 01:36:34 +01:00