-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validated beginners doc #1903
Merged
kailuowang
merged 6 commits into
typelevel:master
from
AlejandroME:validated-beginners-doc
Sep 26, 2017
Merged
Validated beginners doc #1903
kailuowang
merged 6 commits into
typelevel:master
from
AlejandroME:validated-beginners-doc
Sep 26, 2017
Commits on Aug 27, 2017
-
[WIP] Beginner-Friendly
Validated
docsThis commit is the first approach to address typelevel#1678, developing the form-validation example.
Configuration menu - View commit details
-
Copy full SHA for ef08641 - Browse repository at this point
Copy the full SHA ef08641View commit details
Commits on Sep 9, 2017
-
Beginner-friendly example of validated.
This commit contains a simple form-validation example and a couple of approaches making use of `Validated`. It aims to solve typelevel#1678
Configuration menu - View commit details
-
Copy full SHA for 650c537 - Browse repository at this point
Copy the full SHA 650c537View commit details
Commits on Sep 10, 2017
-
- The code examples for form validation are now using `tut` with its respective output in the generated .html. - Fixes some structural issues (`Either` return type in the `Validated` example, use of `mapN` instead of `|@|`). - Adds a deprecation notice about cartesian builder and changes this for using `.mapN`.
Configuration menu - View commit details
-
Copy full SHA for 12f911d - Browse repository at this point
Copy the full SHA 12f911dView commit details -
- The `Validated` approach with the for-comprehension has been splitted in two: the instructions that compile and the for-comprehension that doesn't compile. For the first ones, I've used `tut:silent` and for the second one I've used `tut:book:fail`. With this, all the code of this proposal is checked by tut correctly. - Adds an import for Either to bring .flatMap in Scala versions prior to 2.12.x.
Configuration menu - View commit details
-
Copy full SHA for 32588fe - Browse repository at this point
Copy the full SHA 32588feView commit details
Commits on Sep 12, 2017
-
- Fixes indentation in all the snippets (two spaces). - Added a new section ("short detour") in where I explain the `Semigroup` role in the accumulation, with a little portion of `Validated` code. - Adds "Back and forth" section explaining how to convert between `Validated` and `Either`. I can't figure it out how to convert from `Either` to `Validated` 'failing slowly'.
Configuration menu - View commit details
-
Copy full SHA for 78b9504 - Browse repository at this point
Copy the full SHA 78b9504View commit details
Commits on Sep 17, 2017
-
Revamped some parts of this docs
- Added `final` modifier to `RegistrationData` case class. - Changed if-else in `Either` example to `Either.cond`. - Reused `Either` example validations in `Validated` (non-compiling) approach with `.toValidated`. - Deleted redundant imports for tut. - Changed `Validated` of a `NonEmptyList` for `ValidatedNel` type alias. - Deleted 'disclaimer' about converting from `Validated` to `Either`, losing the fail-slow functionality. - Added `Semigroup` example based on the Peter's one but in the context of the example provided here. - Fixed some typos and grammar errors. - Pointed out to the cats `Semigroup` documentation instead of Wikipedia.
Configuration menu - View commit details
-
Copy full SHA for 8172251 - Browse repository at this point
Copy the full SHA 8172251View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.