Skip to content

Commit

Permalink
Fix field names in parseConfig example. (#11)
Browse files Browse the repository at this point in the history
* Fix field names in `parseConfig` example.

* Update CHANGELOG for PR #11
  • Loading branch information
nsaunders authored Feb 10, 2023
1 parent 7e716db commit 86fc26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
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:
- Minor fix to field names in README example (#11 by @nsaunders)

## [2.0.0] - 2023-02-10

Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ no need for explicit lookups, parsing, or error handling:

```purescript
parseConfig :: Object String -> Either String Config
parseConfig env =
bimap
printEnvError
(\r -> { greeting: r."GREETING", count: r."COUNT" })
$ TypedEnv.fromEnv (Proxy :: _ Config) env
parseConfig = Either.lmap printEnvError <<< TypedEnv.fromEnv (Proxy :: _ Config)
```

> **Note**
Expand Down

0 comments on commit 86fc26a

Please sign in to comment.