Converting a Haskell record to/from query params?
Open
- Dominant language
- Haskell
- Stars
- 53
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
If I have the following Haskell type...
```haskell
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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.