Open flip111 opened 1 year ago
I also had an issue with PureScript code generated by the library.
Generated code depends on obsolete purescript libraries (purescript-foreign-generic) and PureScript translators fails with generic errors I cannot solve.
Given this purescript code
The code uses this purescript library as per recommendation of this repositories readme https://pursuit.purescript.org/packages/purescript-argonaut-aeson-generic/0.4.1
Output of the code is
Then with this haskell program
https://play.haskell.org/saved/iSQjGLvY
Output is
This old library had an option which i think get rid of the contents field for Aeson https://github.com/eskimor/purescript-argonaut-generic-codecs/blob/master/src/Data/Argonaut/Generic/Aeson.purs#L37 But i didn't test this.
When i did a search for client side libraries i found these:
Does someone have a recommendation of how to get client side encoding compatible with purescript-bridge?
Examples with purescript version 0.15.10 GHC version 9.4.6 (stackage LTS 21.9) github: eskimor/purescript-bridge 5ee8778ff141ae6ad9a6057921ec4d49e067b6f0 package set https://github.com/purescript/package-sets/releases/download/psc-0.15.10-20230828/packages.dhall