Skip to content

Converting a Haskell record to/from query params? #143

Description

@saurabhnanda

If I have the following Haskell type...

data Args = Args
  { argLimit :: !Int
  , argOffset :: !Int
  , argSeaerch :: !Text
  }

... is it possible to write ToHttpApiData / FromHttpApiData insances that can achieve the following conversion:

Args{argLimit=10, argOffset=0, argSearch="keyword"} <==> limit=10&offset=0&search=keyword

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions