-
-
Save stephen-lazaro/0934bec6f6be202a7105c7be4e140cec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Combine two patterns. | |
val dateDecoder: RowDecoder[Date] = | |
withSlashes <+> withDashes | |
// It really does work. | |
val Right(dateA) = dateDecoder("1986/10/10") | |
val Right(dateB) = dateDecoder("2010–10–10") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment