brandonchinn178 / brandonchinn178/github-rest

Add helper for (:=) monomorphized to Text

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Haskell
Stars
14
Forks
1
PR merge metrics
No merged PRs in 30d

Description

`:=` is polymorphic for any `ToJSON a`, which is annoying for defining `Text` with string literals:

```haskell
"owner" := ("my-org" :: Text)
```

Maybe add a helper
```haskell
(:=*) :: Text -> Text -> ...
(:=*) = (:=)
```
for setting the type of RHS to Text?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.