# purescript-foreign

[![Latest release](http://img.shields.io/github/release/purescript/purescript-foreign.svg)](https://github.com/purescript/purescript-foreign/releases)
[![Build status](https://travis-ci.org/purescript/purescript-foreign.svg?branch=master)](https://travis-ci.org/purescript/purescript-foreign)

Library for dealing with foreign data (JavaScript objects).

## Installation

```
bower install purescript-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).
