Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 12, 2019
1 parent 5488de2 commit 8dd8d37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [8.0.1] - 2019-07-12
### Fixed
- `README` example. The new `error` attribute was missing.

## [8.0.0] - 2019-07-12
### Added
- `Success` variant to `Form.View.State`. By default, it can be styled using the
Expand Down Expand Up @@ -173,7 +177,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Initial release.

[Unreleased]: https://github.com/hecrj/composable-form/compare/8.0.0...HEAD
[Unreleased]: https://github.com/hecrj/composable-form/compare/8.0.1...HEAD
[8.0.1]: https://github.com/hecrj/composable-form/compare/8.0.0...8.0.1
[8.0.0]: https://github.com/hecrj/composable-form/compare/7.1.0...8.0.0
[7.1.0]: https://github.com/hecrj/composable-form/compare/7.0.2...7.1.0
[7.0.2]: https://github.com/hecrj/composable-form/compare/7.0.1...7.0.2
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ form =
{ parser = EmailAddress.parse
, value = .email
, update = \value values -> { values | email = value }
, error = always Nothing
, attributes =
{ label = "E-Mail"
, placeholder = "some@email.com"
Expand All @@ -51,6 +52,7 @@ form =
{ parser = Ok
, value = .password
, update = \value values -> { values | password = value }
, error = always Nothing
, attributes =
{ label = "Password"
, placeholder = "Your password"
Expand All @@ -62,6 +64,7 @@ form =
{ parser = Ok
, value = .rememberMe
, update = \value values -> { values | rememberMe = value }
, error = always Nothing
, attributes =
{ label = "Remember me" }
}
Expand All @@ -70,6 +73,7 @@ form =
|> Form.append emailField
|> Form.append passwordField
|> Form.append rememberMeCheckbox

```

Read the [`Form` module documentation][form-docs] to understand how this code works.
Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "hecrj/composable-form",
"summary": "Build type-safe composable forms in Elm",
"license": "BSD-3-Clause",
"version": "8.0.0",
"version": "8.0.1",
"exposed-modules": [
"Form",
"Form.View",
Expand Down

0 comments on commit 8dd8d37

Please sign in to comment.