|
1 |
| -# purescript-argonaut |
| 1 | +# Argonaut |
2 | 2 |
|
3 |
| -[](https://github.com/purescript-contrib/purescript-argonaut/releases) |
4 |
| -[](https://travis-ci.org/purescript-contrib/purescript-argonaut) |
5 |
| -[](http://pursuit.purescript.org/packages/purescript-argonaut/) |
6 |
| -[](http://github.com/garyb) |
7 |
| -[](http://github.com/thomashoneyman) |
| 3 | +[](https://github.com/purescript-contrib/purescript-argonaut/actions?query=workflow%3ACI+branch%3Amain) |
| 4 | +[](https://github.com/purescript-contrib/purescript-argonaut/releases) |
| 5 | +[](http://pursuit.purescript.org/packages/purescript-argonaut) |
| 6 | +[](http://github.com/garyb) |
| 7 | +[](http://github.com/thomashoneyman) |
8 | 8 |
|
9 | 9 | [Argonaut](https://github.com/purescript-contrib/purescript-argonaut) is a collection of libraries for working with JSON in PureScript. This library bundles together the following:
|
10 | 10 |
|
|
14 | 14 |
|
15 | 15 | ## Installation
|
16 | 16 |
|
| 17 | +Install `argonaut` with [Spago](https://github.com/purescript/spago): |
| 18 | + |
17 | 19 | ```sh
|
18 |
| -# with Spago |
19 | 20 | spago install argonaut
|
20 |
| - |
21 |
| -# with Bower |
22 |
| -bower install purescript-argonaut |
23 | 21 | ```
|
24 | 22 |
|
25 |
| -## Documentation |
| 23 | +You can also install Argonaut libraries individually (for example, by only installing `argonaut-core` for the `Json` type). |
26 | 24 |
|
27 |
| -Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-argonaut). |
| 25 | +## Quick start |
28 | 26 |
|
29 |
| -- To learn more about Argonaut, its basic data types, and its approach to JSON, see [purescript-argonaut-core](https://github.com/purescript-contrib/purescript-argonaut-core). |
30 |
| -- To learn more about encoding and decoding PureScript types to and from `Json`, see [purescript-argonaut-codecs](https://github.com/purescript-contrib/purescript-argonaut-codecs). |
| 27 | +This library bundles together several other libraries. We recommend checking out the quick starts for those libraries depending on which use case you're looking for: |
| 28 | + |
| 29 | +- To learn more about the basic data types and parsing functions in Argonaut, see [purescript-argonaut-core](https://github.com/purescript-contrib/purescript-argonaut-core). |
| 30 | +- To learn more about encoding and decoding PureScript types to and from `Json` using type classes, see [purescript-argonaut-codecs](https://github.com/purescript-contrib/purescript-argonaut-codecs). |
| 31 | +- To learn more about encoding and decoding PureScript types to and from `Json` using profunctors, see [purescript-codec-argonaut](https://github.com/garyb/purescript-codec-argonaut). |
31 | 32 | - To learn more about manipulating `Json` using optics and `JCursor`, see [purescript-argonaut-traversals](https://github.com/purescript-contrib/purescript-argonaut-traversals)
|
32 | 33 |
|
| 34 | +## Documentation |
| 35 | + |
| 36 | +`argonaut` documentation is stored in a few places: |
| 37 | + |
| 38 | +1. Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-argonaut). |
| 39 | +2. Written documentation and [the changelog](./docs/CHANGELOG.md) are kept in [the docs directory](./docs). |
| 40 | +3. Usage examples can be found in [the test suite](./test). |
| 41 | + |
| 42 | +If you get stuck, there are several ways to get help: |
| 43 | + |
| 44 | +- [Open an issue](https://github.com/purescript-contrib/purescript-argonaut/issues) if you have encountered a bug or problem. |
| 45 | +- [Search or start a thread on the PureScript Discourse](https://discourse.purescript.org) if you have general questions. You can also ask questions in the `#purescript` and `#purescript-beginners` channels on the [Functional Programming Slack](https://functionalprogramming.slack.com) ([invite link](https://fpchat-invite.herokuapp.com/)). |
33 | 46 |
|
34 | 47 | ## Contributing
|
35 | 48 |
|
36 |
| -Read the [contribution guidelines](https://github.com/purescript-contrib/purescript-argonaut/blob/master/.github/contributing.md) to get started and see helpful related resources. |
| 49 | +You can contribute to `argonaut` in several ways: |
| 50 | + |
| 51 | +1. If you encounter a problem or have a question, please [open an issue](https://github.com/purescript-contrib/purescript-argonaut/issues). We'll do our best to work with you to resolve or answer it. |
| 52 | + |
| 53 | +2. If you would like to contribute code, tests, or documentation, please [read the contributor guide](./.github/CONTRIBUTING.md). It's a short, helpful introduction to contributing to this library, including development instructions. |
| 54 | + |
| 55 | +3. If you have written a library, tutorial, guide, or other resource based on this package, please share it on the [PureScript Discourse](https://discourse.purescript.org)! Writing libraries and learning resources are a great way to help this library succeed. |
0 commit comments