Created
December 9, 2021 18:13
-
-
Save L7R7/20fb25f57fefd392294ae7a9c9ba3254 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| instance FromJSON URI where | |
| parseJSON = withText "URI" $ \v -> maybe (fail "Bad URI") pure (parseURI (toString v)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment