Commit Graph

193 Commits

Author SHA1 Message Date
Tom Sydney Kerckhove
86ab464a33 further docs, and a JSONObjectCodec type synonym 2021-11-18 00:24:33 +01:00
Tom Sydney Kerckhove
6773ee287c found a way to get rid of the error and add more docs 2021-11-18 00:16:01 +01:00
Tom Sydney Kerckhove
7e1f1ea5ff rename json encoding and decoding functions to mention json 2021-11-17 18:11:28 +01:00
Tom Sydney Kerckhove
68457161c6 rename yaml document to schema 2021-11-17 18:00:49 +01:00
Tom Sydney Kerckhove
7ad5253bbc remove benchmarks that can't run 2021-11-17 14:39:36 +01:00
Tom Sydney Kerckhove
0c501cf45b basic benchmarks 2021-11-17 14:24:20 +01:00
Tom Sydney Kerckhove
c7519cce99 made enumCodec more general 2021-11-17 13:40:30 +01:00
Tom Sydney Kerckhove
c217851b1d combine nested bimap codecs 2021-11-17 01:09:05 +01:00
Tom Sydney Kerckhove
a48dc85e1b make multiple alternatives object schemas look good too 2021-11-17 01:06:32 +01:00
Tom Sydney Kerckhove
1e15903a98 rename both to all in object schemas 2021-11-17 00:59:20 +01:00
Tom Sydney Kerckhove
6d57ef06b4 everything passes! 2021-11-17 00:57:07 +01:00
Tom Sydney Kerckhove
ae54f406da only jsonschema roundtripping left 2021-11-17 00:01:28 +01:00
Tom Sydney Kerckhove
1c369eb74a schema validation is back 2021-11-16 23:56:41 +01:00
Tom Sydney Kerckhove
ba19213a7d got something to compile in the schema 2021-11-16 23:49:58 +01:00
Tom Sydney Kerckhove
01664270e7 Trying choice for objects again 2021-11-16 21:17:38 +01:00
Tom Sydney Kerckhove
0723cdc7e0 trying to implement choice for objects 2021-11-16 17:37:51 +01:00
Tom Sydney Kerckhove
67203f3c00 MORE doctest docs 2021-11-16 13:17:31 +01:00
Tom Sydney Kerckhove
cbc136d186 Added doctest for sustainable documentation 2021-11-16 01:47:12 +01:00
Tom Sydney Kerckhove
464c65658a bounded integral rename and docs 2021-11-15 10:56:51 +01:00
Tom Sydney Kerckhove
ba37cd65e9 more docs about bimap 2021-11-15 10:52:16 +01:00
Tom Sydney Kerckhove
2ba58cb1d3 Show bounds in yaml documents as integers if we can 2021-11-14 21:25:42 +01:00
Tom Sydney Kerckhove
43206f901c Add optional bounds to the number codec 2021-11-14 21:20:39 +01:00
Tom Sydney Kerckhove
6e3809376f removed the docs from the codec instances of Ints and Words 2021-11-14 13:57:09 +01:00
Tom Sydney Kerckhove
8074268126 put optionalFieldOrNullWithOmittedDefault and friends in the export list 2021-11-14 13:23:20 +01:00
Tom Sydney Kerckhove
22361f607d Undid the either change, it just does not produce nice docs 2021-11-14 13:21:49 +01:00
Tom Sydney Kerckhove
9cb3e6995c optionalFieldOrNullWithOmittedDefault 2021-11-14 13:12:07 +01:00
Tom Sydney Kerckhove
3af2f4b216 Playing around with branching error context 2021-11-14 12:56:29 +01:00
Tom Sydney Kerckhove
63b2a58f7c eithercodec for objectcodecs, it's a bit cursed but maybe that's ok? 2021-11-13 16:00:56 +01:00
Tom Sydney Kerckhove
4afd2c5802
Merge pull request #3 from mheinzel/docs-omitted-default
Add docs for omitted default value
2021-11-13 09:37:29 +01:00
Matthias Heinzel
6e88800ec7 add docs for omitted default value 2021-11-13 01:20:05 +01:00
Tom Sydney Kerckhove
09c65c8600 Yaml parsing with nice colourful errors 2021-11-12 21:23:42 +01:00
Tom Sydney Kerckhove
8b47a07e2a Instances for DiffTime and NominalDiffTime 2021-11-12 17:31:18 +01:00
Tom Sydney Kerckhove
a30b00fc08 codecViaAeson instances for time types 2021-11-12 16:56:34 +01:00
Tom Sydney Kerckhove
0cca6b2661 HasCodec instance for Day 2021-11-12 16:45:14 +01:00
Tom Sydney Kerckhove
35954aec68 optional key with omitted default 2021-11-12 16:23:33 +01:00
Tom Sydney Kerckhove
4ddacd3631 explicit function for creating nonempty list codecs 2021-11-12 14:53:38 +01:00
Tom Sydney Kerckhove
9e4cf40ace simplified rendering of recursive schemas 2021-11-12 01:18:58 +01:00
Tom Sydney Kerckhove
777defbac0 codecs for maps and hashmaps 2021-11-12 01:11:58 +01:00
Tom Sydney Kerckhove
610aff68fd rename MapCodec to BimapCodec 2021-11-11 22:40:02 +01:00
Tom Sydney Kerckhove
192d87f259 HasCodec instance for sets 2021-11-11 18:26:43 +01:00
Tom Sydney Kerckhove
46be3a8329 Use the same trick to get rid of the error in ToYaml 2021-11-11 13:57:15 +01:00
Tom Sydney Kerckhove
ff98ddf3c5 readme fixup 2021-11-11 13:52:24 +01:00
Tom Sydney Kerckhove
ff6c8044b3 Got rid of a pure "error" using some refactoring and type magic 2021-11-11 13:51:33 +01:00
Tom Sydney Kerckhove
3b206f03d7 automatically implement toEncoding via codec as well 2021-11-11 13:45:40 +01:00
Tom Sydney Kerckhove
a9bf5c517e tests for roundtrips through json bytes and back 2021-11-11 13:27:03 +01:00
Tom Sydney Kerckhove
0fd5a4778e mention the yaml functionality in the readme 2021-11-11 13:24:38 +01:00
Tom Sydney Kerckhove
171202db07 rename toContextVia for extra clarity 2021-11-11 13:22:43 +01:00
Tom Sydney Kerckhove
6221413380 documented how to implement HasCodec for newtypes 2021-11-11 13:18:48 +01:00
Tom Sydney Kerckhove
d650adcdc1 Encoding yaml values with ToYaml for ordered keys 2021-11-11 00:34:12 +01:00
Tom Sydney Kerckhove
fc008467c7 working around an old ghc bug 2021-11-08 16:21:35 +01:00