dhall-purescript icon indicating copy to clipboard operation
dhall-purescript copied to clipboard

dhall-json functionality

Open MonoidMusician opened this issue 4 years ago • 3 comments

Users will probably want to be able to export (and possibly import) JSON from Dhall expressions, so we should probably add some of the functionality of dhall-json to this library (wouldn't need to have 100% feature parity). Would be a good issue for someone else to tackle.

MonoidMusician avatar Jun 03 '21 12:06 MonoidMusician

I would love to help out but I really don't know how to get this working. I want to use this but I am pretty new to Purescript and the Documentation is unclear to me, and even misleading at points. I've built the package with spago. So why does this follow with a section about using bower? Shouldn't it be under a separate subheading if it's not part of the same process? I've used the the cli to convert the packages.dhall in the root directory, but how do I use this in a browser? Sorry it's really unclear to me.

mithray avatar Oct 06 '22 02:10 mithray

Similarly, why are the dependencies listed in the readme as if they should be executed when they are inside the package.json? Being included within a section title "installation" implies that they should be run, but they are already run if you install it with npm.

mithray avatar Oct 06 '22 02:10 mithray

@mithrayls Hi there, just answering a few questions:

So why does this follow with a section about using bower?

PureScript used to use the Bower registry and tooling for its packages, with pulp being the build tool. Eventually, we switched to using spago and its package set system, only recently getting our own registry up and running.

Similarly, why are the dependencies listed in the readme as if they should be executed when they are inside the package.json?

I believe the Installation section is for downstream consumers of dhall-purescript, since spago by itself cannot orchestrate building foreign dependencies or run build scripts at the moment.

purefunctor avatar Oct 06 '22 03:10 purefunctor