paulyoung / purescript-corefn

A library for working with the PureScript functional core.
Apache License 2.0
23 stars 7 forks source link

Support new corefn.json format #41

Closed paulyoung closed 6 years ago

paulyoung commented 6 years ago

It would be great to somehow leverage https://github.com/purescript/purescript/blob/1a3ee21c110dd3dce45e7e2a77349141e943e254/src/Language/PureScript/CoreFn/FromJSON.hs without having to manually port the module and then keep it in sync.

@coot do you have any thoughts on this?

paulyoung commented 6 years ago

Or maybe @rightfold?

paulyoung commented 6 years ago

I guess what I'm proposing is basically a new back end that produces PureScript types equivalent to those found in Language.PureScript.CoreFn.FromJSON.

paulyoung commented 6 years ago

After thinking about it, I think the above approach would be too slow.