agrafix / superrecord

Haskell: Supercharged anonymous records
BSD 3-Clause "New" or "Revised" License
83 stars 16 forks source link

Generic instances for Record (Rec) #21

Open habbler opened 6 years ago

habbler commented 6 years ago

Hello,

I am trying to use superrecord together with ppTable.

ppTable requires that the table (and hence the rows of the table; in this case superrecord records) have GHC.Generic instances (see function printTable)

would it be possible to add sensible GHC.Generic instances to the Rec and Record types.

Ideally in such a way that ppTable works correctly out of the box (don't know if this is possible...)

neongreen commented 4 years ago

Implemented in jrec, which is based on superrecord: https://github.com/juspay/jrec

agrafix commented 4 years ago

Curious if there's any work we should/could do to merge the two packages? Possibly splitting out the internals into a dedicated package?

neongreen commented 4 years ago

Not at this point. I want to retain the ability to experiment. When the design of jrec is stable — perhaps it will be a good idea.

agrafix commented 4 years ago

Okay! Let me know :)