flipstone / json-fleece

Extensible JSON Schemas for Haskell
MIT License
2 stars 1 forks source link

Adds three `Map` schemas using `fromListWith` #17

Closed AugmenTab closed 1 year ago

AugmenTab commented 1 year ago

This adds schemas for Data.Map, Data.Map.Strict, and Data.IntMap. Each schema requires the user to provide a function to handle key collisions, which they use with their espective fromListWith functions, and a user-defined schema for the association list elements.

The existing Map schema has been renamed to jsonMap.

AugmenTab commented 1 year ago

We decided that the naming of map should not be changed as it was in this PR, and that it would be better to define any schemas for Map where they would be used rather than include them in Fleece at this time. With this, I'm closing the PR.