-
Notifications
You must be signed in to change notification settings - Fork 43
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
Deprecate PathPiece? #5
Comments
I think the best course of action is to keep the path-pieces package but release a new version with the changes to the TypeClass that you made here. Otherwise we are in the position of 2 packages defining the same typeclass. After that release we can switch packages that depend on path-pieces package over to http-api-data and then finally deprecate path-pieces. Does that make sense? |
Yes, this totally makes sense! |
In order to deprecate It seems that toUrlPieces :: ToHttpApiData a => [a] -> [Text]
toUrlPieces = fmap toUrlPiece
parseUrlPieces :: FromHttpApiData a => [Text] -> Either Text [a]
parseUrlPieces = traverse parseUrlPiece |
I suspect the idea of PathMultiPiece is that it allowed flexibility for user definitions, but I have never used this feature (and it is rarely used in general). @snoyberg might be able to provide more insight. |
That's probably a reasonable simplification |
Closing this since yesodweb/path-pieces#13 exists. |
No description provided.
The text was updated successfully, but these errors were encountered: