natefaubion / purescript-language-cst-parser

PureScript CST Parser written in PureScript
MIT License
49 stars 17 forks source link

`Generic` instances #53

Open m-bock opened 1 year ago

m-bock commented 1 year ago

Would a PR be accepted that adds Generic instances to the ADTs in the Types module? Or are there particular reasons why they don't exists?

natefaubion commented 1 year ago

Can you clarify what your use case is? Related https://github.com/natefaubion/purescript-language-cst-parser/pull/30

As I stated there, it’s not something I’m necessarily opposed to, but whatever you are going to use it for is going to be quite slow. This isn’t necessarily a deal breaker, I just want to consider the use case.

i-am-the-slime commented 10 months ago

I'm interested in this, because I'd like to get a quick/free way of (de)serialising the CST to and from JSON.