Commit graph

1901 commits

Author SHA1 Message Date
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
Nickolay Kudasov
c769800adb Add ToSample instances for (), Bool and Ordering
Also remove `instance ToSample ()` from example.
2015-09-19 01:22:28 +03:00
Nickolay Kudasov
a2bc8a0d0d Add ToSample instances for Maybe, Either and [] 2015-09-19 01:21:15 +03:00
Nickolay Kudasov
75999b8211 Replace boileplate ToSample instances for tuples with empty ones
We just use default Generics implementation for tuples now.
2015-09-19 01:19:52 +03:00
Nickolay Kudasov
80f235b986 Add default ToSample implementation for Generics
- introduce an internal `GToSample` class
- introduce internal functions `defaultSample` and `defaultSamples`
- add default signature for `toSamples` to use Generics
- set default `toSamples` implementation to `defaultSamples`
- remove the `MINIMAL` pragma to avoid warnings for empty instances
2015-09-19 01:15:18 +03:00
Julian Arni
019fad973d Merge pull request #227 from zerobuzz/tosample-for-tuples
ToSample instances for tuples.
2015-09-18 16:36:08 +02:00
Matthias Fischmann
99d1402a06 ToSample instances for longer tuples (up to 7). 2015-09-16 12:45:51 +02:00
Matthias Fischmann
d9df8f043e Add tests. 2015-09-16 12:42:05 +02:00
Matthias Fischmann
e5259358db ToSample instances for tuples. 2015-09-16 11:57:29 +02:00
Julian Arni
81e08f31d1 Merge pull request #226 from haskell-servant/jkarni/octet-default
Document octet-stream default RFC.
2015-09-15 17:36:21 +02:00
Julian K. Arni
2be621871d Document octet-stream default RFC. 2015-09-15 17:24:37 +02:00
Sönke Hahn
ba918c720f fix for lens-4.13 2015-09-15 22:13:00 +08:00
Julian Arni
556ae1e1a6 Merge pull request #221 from int-index/int-index/except
Drop EitherT in favor of ExceptT
2015-09-15 12:16:42 +02:00
Index Int
c5257f42ab Depend on transformers-compat 2015-09-12 16:28:20 +03:00
Index Int
f2f7b061d2 Drop EitherT in favor of ExceptT 2015-09-12 15:11:24 +03:00
Julian Arni
961887cc95 Merge pull request #217 from jml/fix-nix-script
Fix nix script
2015-09-08 13:00:34 -07:00
Jonathan Lange
ff3e15dbd2 Rename update-nix-files to generate-nix-files 2015-09-08 20:39:20 +01:00
Jonathan Lange
acd9d2f644 Ignore auto-generated nix files 2015-09-08 20:37:49 +01:00
Jonathan Lange
6a35a0ae7a Remove auto-generated nix files 2015-09-08 20:36:54 +01:00
Jonathan Lange
e4ce3b95e5 Fix update-nix-files.sh to run correctly 2015-09-08 20:28:57 +01:00
Jonathan Lange
a265fd31a0 Run of update-nix-files.sh 2015-09-08 20:28:47 +01:00
Julian Arni
ff11f38e05 Merge pull request #207 from haskell-servant/jkarni/cassava
Add servant-cassava.
2015-09-07 12:29:47 -07:00
Sönke Hahn
ef058417bc README: typo 2015-09-07 09:53:46 -07:00
Sönke Hahn
747b35d66d make travis builds use stack 2015-09-06 09:04:55 -07:00
Julian K. Arni
1bffaac2d0 Add servant-cassava. 2015-08-29 19:15:16 +02:00
Christian Marie
b9ce73fcac Merge pull request #205 from haskell-servant/jkarni/broken-links
Remove broken links
2015-08-28 10:54:57 +10:00
Julian K. Arni
9e0b950200 Remove broken links 2015-08-27 16:24:25 +02:00
Julian Arni
e1d380e749 Merge pull request #204 from tfausak/gh-203-base-url-paths
Fix #203; add path to BaseUrl
2015-08-27 14:37:19 +02:00
Taylor Fausak
4238a58f92 Fix #203; add path to BaseUrl 2015-08-25 08:42:13 -05:00
Christian Marie
e5492bf323 Merge pull request #202 from proger/patch-1
Dead link in servant.cabal
2015-08-24 21:16:17 +10:00
Vlad Ki
6c987f2dc3 Dead link in servant.cabal 2015-08-24 14:00:01 +03:00
Alp Mestanogullari
90d837dda9 Merge pull request #196 from haskell-servant/jkarni/contributing
'Contributing' section in the README + stylish haskell changes
2015-08-18 11:25:08 +02:00