https://github.com/purescript/purescript-foreign
Library for dealing with foreign data (JavaScript objects) in PureScript
https://github.com/purescript/purescript-foreign
Last synced: 5 months ago
JSON representation
Library for dealing with foreign data (JavaScript objects) in PureScript
- Host: GitHub
- URL: https://github.com/purescript/purescript-foreign
- Owner: purescript
- License: bsd-3-clause
- Created: 2014-02-10T23:49:28.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-04-27T21:54:03.000Z (almost 4 years ago)
- Last Synced: 2025-09-04T18:47:49.136Z (6 months ago)
- Language: PureScript
- Homepage:
- Size: 178 KB
- Stars: 64
- Watchers: 9
- Forks: 41
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-foreign
[](https://github.com/purescript/purescript-foreign/releases)
[](https://github.com/purescript/purescript-foreign/actions?query=workflow%3ACI+branch%3Amaster)
[](https://pursuit.purescript.org/packages/purescript-foreign)
Library for dealing with foreign data (JavaScript objects).
## Installation
```
spago install foreign
```
## Examples
- [Simple types](examples/SimpleTypes.purs)
- [Arrays](examples/Arrays.purs)
- [Objects](examples/Objects.purs)
- [Complex objects](examples/Complex.purs)
- [Applicative style parser](examples/Applicative.purs)
- [Maybe for nulls](examples/MaybeNullable.purs)
- [Nested objects](examples/Nested.purs)
- [Unions](examples/Union.purs)
- [Parser errors](examples/ParseErrors.purs)
## Documentation
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-foreign).