Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add smart constructors for Value #975

Open
Boarders opened this issue Oct 25, 2022 · 2 comments
Open

Add smart constructors for Value #975

Boarders opened this issue Oct 25, 2022 · 2 comments

Comments

@Boarders
Copy link
Contributor

Constructing a Value type by hand you can use .= and object. I think it would make sense to have a richer collection of ways to construct a Value mirroring the interface that is offered by Data.Aeson.Encoding.

@Boarders
Copy link
Contributor Author

As an example, if one wants to create an array value then that should not mean you need to import Vector.

@phadej
Copy link
Collaborator

phadej commented Oct 25, 2022

FWIW, Vector is an instance of https://hackage.haskell.org/package/base-4.14.1.0/docs/GHC-Exts.html#t:IsList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants