Skip to content

Add endpoint factories for custom parsers #117

Description

@L8D

Currently we have endpoint creators like single, singleBy and singleRead. The only way to write a custom parser is through singleRead and many libraries assume Read and Show instances are meant for developer-readable representations (exa. Data.UUID, ByteString, UTCTime) as well as using Read is just plain annoying.

Can we add an additional endpoint creator category like (String -> Maybe sid) -> Endpoint sid mid aid or Parser sid -> Endpoint sid mid aid for some assumed parser library (exa. attoparsec)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions