I’m using aeson template haskell to generate instances for a record which I get from postgres.
I’m using the postgres citext which I unmarshal into the CI Text
from case-insensitive package.
Unfortunately CI Text has no support for aeson. How can I manually write this instance for CI Text in my own codebase?
I’m new to haskell so it’s difficult to figure this out from only the hackage documentations.
This is the error I get: