Skip to content

Commit

Permalink
Fix example code importing from wrong package (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Honeyman <[email protected]>
  • Loading branch information
flip111 and thomashoneyman authored Jul 22, 2021
1 parent f315154 commit 56d552d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:
Bugfixes:

Other improvements:
* Fixed readme bug where `jsonParser` was imported from `Data.Argonaut.Core` instead of `Data.Argonaut.Parser` (#50 by @flip111)

## [v6.0.0](https://github.com/purescript-contrib/purescript-argonaut-core/releases/tag/v6.0.0) - 2021-02-26

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ someObject =
Finally, you can parse JSON from a string using the `jsonParser` function. However, this isn't guaranteed to produce a correct value, so it returns an `Either` value, where a parsing error is represented with `Left` containing an error message.

```purs
import Data.Argonaut.Core (jsonParser)
import Data.Argonaut.Parser (jsonParser)
import Data.Maybe (Maybe(..))
someObject :: Either String Json
Expand Down

0 comments on commit 56d552d

Please sign in to comment.