Commit Graph

20 Commits

Author SHA1 Message Date
Mark Eibes
924a97889d Adapt to breaking change in BigInt 2023-02-21 09:55:27 +01:00
Mark Eibes
f36a98391e Revert "Postel's law for NonEmpty* (#18)"
This reverts commit ccbde17dff.
2022-11-23 19:32:58 +01:00
Mark Eibes
ccbde17dff
Postel's law for NonEmpty* (#18) 2022-11-23 19:08:25 +01:00
Mark Eibes
bdb2316df6
Instances for Durations (#17) 2022-11-23 17:16:33 +01:00
Mark Eibes
f213e33fb4
Instances for Yoga.Tree and DateTime
* Instances for `Yoga.Tree` probably not stack-safe

* More datetime instances
2022-11-23 16:57:11 +01:00
Mark Eibes
0a674d1da5
Add instances for NonEmptyString (#13) 2022-10-25 14:53:53 +02:00
sigma-andex
b92f0e0a0e Remove unused imports 2022-10-18 16:11:47 +01:00
sigma-andex
ce7b317fa1 Migrate to js-bigints in order to remove npm dep 2022-10-18 16:11:47 +01:00
Mark Eibes
9d6263b6f3 Improve enum error message 2022-09-01 13:12:09 +02:00
Mark Eibes
b6b2a53888 Improve error handling 2022-07-21 19:13:59 +02:00
Mark Eibes
5d39e7ad95 Improve path for object errors 2022-07-21 16:39:31 +02:00
Mark Eibes
9590f73ac5 Add DateTimeCodec 2022-07-21 15:29:57 +02:00
Mark Eibes
f9fb9d7b41
Add option for enums and more instances (#9)
Instances for `Either`, `JSDate`.
And some bullshit coverage.
2022-07-21 14:45:22 +02:00
Mark Eibes
0e8a34c8d8 Fix #8 2022-07-04 19:27:44 +02:00
sigma-andex
0c1654c631
Add support for bigint (#5)
* Add support for bigint

Add multiple deserialisation options

* Add npm install
2022-07-04 19:08:04 +02:00
Mark Eibes
0ff9e606d8
Add instances for Map and Maps with Newtype keys (#4) 2022-06-16 21:28:58 +02:00
Mark Eibes
0463c5049d
Improve generics and add tests (#3)
* Improve generics and add tests

* Streamline generic function names

To be more inline with genericShow, genericRead, etc. to all start
with genericReadForeign... or genericWriteForeign... for best dis-
coverability when writing code

* Add more variants of Variants

* Spago install newtype

* Add info in README
2022-06-11 21:12:24 +02:00
Mark Eibes
297ab5657e
Add Generics from simple-json-generics (#2)
* Add generics

* Update bower.json

* Move dependencies
2022-06-10 16:36:25 +02:00
Mark Eibes
bbf06d5b54 Add tuple instances (@ursi) 2022-05-11 10:23:52 +02:00
Mark Eibes
7fdf41d082 Rename some stuff 2022-05-10 19:00:58 +02:00