Arian van Putten
cf59abd2b8
Fix compiler errors in servant-examples.
2015-10-02 14:12:16 +02:00
Arian van Putten
e0fe0a1f39
Add version bounds for text
2015-10-02 14:03:03 +02:00
Arian van Putten
a62441077e
Convert servant-js to use text.
2015-10-02 13:59:54 +02:00
Arian van Putten
e17987e5ff
Convert servant-foreign to use text
2015-10-02 10:23:57 +02:00
Julian Arni
52b58d0fe9
Merge pull request #242 from haskell-servant/jkarni/http-client-manager
...
Pass in Manager as argument to 'client'
2015-09-30 13:36:51 +02:00
Julian K. Arni
cd7906d72e
Changelog updates and 7.8 fixes.
2015-09-28 18:24:27 +02:00
Julian K. Arni
7049383e77
unsafegetmeamanager
2015-09-28 18:07:12 +02:00
Julian K. Arni
f14d227b11
More instances for Alternative
2015-09-28 18:06:49 +02:00
Julian K. Arni
de447dfe22
Pass in Manager as argument to 'client'
2015-09-28 16:34:53 +02:00
Julian Arni
1d248a573f
Merge pull request #238 from fizruk/simplify-ToSample-#211
...
Simplify ToSample (remove redundant second parameter)
2015-09-24 15:03:17 +02:00
Nickolay Kudasov
f0c2284c30
Fix docs for ToSamples
2015-09-24 15:25:58 +03:00
Nickolay Kudasov
479290affd
Update changelog
2015-09-24 14:29:27 +03:00
Nickolay Kudasov
5aa0e2e733
Fix servant-docs test suite and add Headers to TestApi
2015-09-24 14:02:21 +03:00
Nickolay Kudasov
0082d2bd2f
Remove redundant second argument of ToSample class
2015-09-24 14:00:39 +03:00
Julian Arni
c4561b4c6c
Merge pull request #234 from haskell-servant/jkarni/werror
...
Turn on Werror on travis.
2015-09-23 20:50:27 +02:00
Julian K. Arni
4206285e2d
CPP NullaryTypeClass
2015-09-23 20:39:46 +02:00
Julian K. Arni
487f323f2f
More Werror fixes
2015-09-23 20:30:45 +02:00
Julian K. Arni
3c3efda0d5
Extra file
2015-09-23 20:18:52 +02:00
Julian K. Arni
7e3fdd6614
Use --ghc-options rather than --pendantic.
...
The latter seems to override cabal.
2015-09-23 20:18:52 +02:00
Julian K. Arni
dfc49dd0a0
Further cleanup
2015-09-23 20:18:52 +02:00
Julian K. Arni
965063171b
Janitoring
2015-09-23 20:18:52 +02:00
Julian K. Arni
b50e9128c1
Turn on Werror on travis.
2015-09-23 20:16:34 +02:00
Julian Arni
a1dc0561a3
Merge pull request #232 from dredozubov/servant-foreign
...
Common code generation types and helpers extracted to servant-foreign
2015-09-23 14:41:59 +02:00
Denis Redozubov
7b58f0463a
reduce synopsis to make cabal happy
2015-09-23 01:04:14 +03:00
Denis Redozubov
477976e128
update cabal package description
...
* synopsys
* description
* package version looks consistent with other servant-* packages now
2015-09-22 22:38:29 +03:00
Denis Redozubov
64fc870852
make version/version constraints consistent with other servant-* packages
2015-09-22 22:28:02 +03:00
Denis Redozubov
438311c240
remove duplicate lens dependency
2015-09-22 14:47:38 +03:00
Denis Redozubov
99b59eac39
NullaryTypeClasses needed for ghc 7.8
2015-09-22 14:47:38 +03:00
Denis Redozubov
897fd8fdfc
bump servant-foreign to 0.5
2015-09-22 14:47:32 +03:00
Denis Redozubov
5018a34abd
fix Elem type family to enable sane error reporting
2015-09-22 14:02:52 +03:00
Denis Redozubov
b59a62e012
no opinion on valid function names in servant-foreign
2015-09-22 14:02:30 +03:00
Alp Mestanogullari
e1ce514750
Merge pull request #233 from sguy/master
...
Fixed javascript function names for tutorial/T9
2015-09-22 12:48:31 +02:00
Denis Redozubov
7ff9e52a50
CommonGeneratorOptions moved to servant-js
2015-09-22 12:21:04 +03:00
sguy
fbc64b56e3
Fixed capitalization 'getbooks' => 'getBooks', 'getpoint' => 'getPoint'.
2015-09-21 22:30:45 -04:00
Denis Redozubov
6fa4b55c94
fix build settings for ghc-7.8.4
2015-09-21 21:34:38 +03:00
Denis Redozubov
ce3e4f7193
Extract common code-generation stuff to servant-foreign
2015-09-21 20:59:09 +03:00
Julian Arni
d1496c9668
Merge pull request #228 from fizruk/generic-to-sample-#151
...
Generic ToSample
2015-09-21 14:30:35 +02:00
Nickolay Kudasov
350992069f
Update changelog
2015-09-21 13:49:26 +03:00
Nickolay Kudasov
42f5795fcc
Add DocOptions with maxSamples field
...
With DocOptions one can limit maximum number of samples.
This is useful for Generic-based instances for recursive data types
(e.g. `[]`). Default options set maxSamples to 5.
2015-09-21 13:36:57 +03:00
Nickolay Kudasov
f96915e85e
Add samples helper to define samples without documentation
2015-09-21 12:51:00 +03:00
Nickolay Kudasov
f56a656e65
Fix servant-docs tests
2015-09-21 12:46:21 +03:00
Nickolay Kudasov
8ecf2219ab
Add more ToSample instances
2015-09-21 12:02:55 +03:00
Nickolay Kudasov
714e740098
Add some missing comments in Servant.Docs.Internal
2015-09-21 11:58:54 +03:00
Alp Mestanogullari
9f13684afa
Merge pull request #231 from haskell-servant/jkarni/readme
...
Jkarni/readme
2015-09-20 15:16:28 +02:00
Julian K. Arni
b2589a2171
Don't self-promote at all
2015-09-20 14:14:09 +02:00
Julian K. Arni
1beb3ad07f
A little less self-promoting
2015-09-20 14:01:59 +02:00
Julian K. Arni
ffb095c0c7
self-promote
2015-09-20 13:32:27 +02:00
Nickolay Kudasov
98af812491
Move toSample method out of ToSample class
...
toSample method conflicted with default Generics implementation.
2015-09-19 02:27:51 +03:00
Nickolay Kudasov
e3f5a357e1
Fix GHC 7.8 build
...
Added missing control-monad-omega dependency.
2015-09-19 01:44:36 +03:00
Nickolay Kudasov
401b44ac1b
Make default ToSample instances productive
...
The default Generics-based ToSample instance now uses Omega type
to productively produce distinct samples. The previous version
was based on lists and hence left-recursive. This means that with
previous versions the default toSamples for [Bool] would return an
infinite list like this:
[[],[False],[False,False],[False,False,False],...
As you can see it would never produce a list with True in it.
Omega handles this and produces a more diverse output:
[[],[False],[False,False],[True],...
This is still not the best possible case, but to do better we need
to use Omega not only in GToSample, but in ToSample as well since
GToSample uses ToSample instances recursively.
2015-09-19 01:25:26 +03:00