Open octopuscabbage opened 9 years ago
I didn't write any additional tests for this because none of the functions seemed particularly testable.
Forgot to add the dependencies, but they are there now. Adds one additional dependency 'network-uri'
having a hell of a time satisfying the network uri dependency
Thanks for the pull request,
Unfortunately there are a number of issues i see with this approach:
Extending what I wrote in https://github.com/silkapp/rest/issues/122#issuecomment-110306186 I'd rather we introduce a function generateJs :: JsConfig -> IO ByteString
or similar, then you can easily use your approach without modifying rest-gen further.
Actually, this is already possible by calling mkJsApi
directly instead of using generate
. But It would be nice to be able to use the predefined flags anyway, I started working on this on the gen-modular
branch.
When are you planning to merge your gen modular branch? I could try moving some of the code over there and also adding in a command line compiler.
As for the dependencies, I can use http-client instead of HTTP I just thought you were already using network (because of yaml file for jenkins)
Fixes issue #122