ghcjs / ghcjs-base

base library for GHCJS for JavaScript interaction and marshalling, used by higher level libraries like JSC
MIT License
45 stars 67 forks source link

JSON.decode/encode functions? #101

Open achirkin opened 7 years ago

achirkin commented 7 years ago

https://github.com/ghcjs/ghcjs-base/blob/1f28a93dad380a471a3fd7e00819a88c20fa7f92/JavaScript/JSON/Types/Internal.hs#L307

Shouldn't this be JSON.parse(JSON.stringify($1)) instead of JSON.decode(JSON.encode($1))?