wz1000

Results 148 comments of wz1000

I think aeson already supports the `UntaggedValue` option for deriving instances for sums: https://hackage.haskell.org/package/aeson-1.5.4.0/docs/Data-Aeson.html#t:SumEncoding

Yes, I'm working on this. I'll have a patch up shortly.

Might be related to https://gitlab.haskell.org/ghc/ghc/-/issues/20903

Some 9.0.2 distributions (all the hadrian generated ones in fact - which would be the fedora one IIRC) also don't have haddocks.

@saurabhnanda What do you mean by Enum support and Array support? Also, why is JSONB support needed? Won't we be working with Haskell types and only convert to/from JSON while...

> Figuring out how Persistent can handle PG ENUMs and arrays AFAIK, Persistent automatically converts Haskell Enums to PG enums. However, it doesn't support PG arrays.

> Also, what about housekeeping columns, like created_at and updated_at, and how to deal with them in Persistent? They'll have to be dealt with manually, possibly with helper functions that...

> Do you want to spend time looking around some (unpublished) projects that solve this problem? I think I can just work around it for now(one possible solution is using...

The semantics of those are quite different. A `Tenant` is a pure Haskell value, while a `TenantId` is a reference to a mutable resource. This distinction makes which to use...

> Possible to change the constructor to TenantUpdater in the following code to avoid any confusion? Yes, but I don't use this constructor in my actual code any way. This...