haskell / haskell/aeson

Preserve empty contents tag?

Open
#824 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.3k
Forks
336
Avg merge
3d 7h
Merged PRs (30d)
4

Description

Hi guys, first of all, thanks for a great job in the library :tada:

I wanted to know if there's a way to preserve the changes done in #300 and in #307 are somehow configurable?

To give you some idea, we made a **HUGE** jump from version `0.11.3.0` to `1.4.7.1` (yes the app is really old and has a bunch of tech debt) and with the issue and PR I mentioned, it broke a lot of internal stuff for us, so I was wondering if there's a workaround to preserve `contents: []` for single constructors?

We have tons for ADTs like the following:

``` haskell
data Foo = Foo Text | Bar;
```

Thanks in advance for the help with this!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.