haskell-servant / haskell-servant/servant

Upstreaming RawText from servant-http2-client

Open
#1,603 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

@lucasdicioccio Would you be okay with the upstreaming of your `RawText` into `servant`? I am specifically thinking about [this code](https://github.com/lucasdicioccio/servant-http2-client/blob/master/test/Spec.hs#L24-L30):

```haskell
data RawText

instance Accept RawText where
contentType _ = "text/plain"

instance MimeRender RawText Text where
mimeRender _ = fromStrict . Encoding.encodeUtf8

instance MimeUnrender RawText Text where
mimeUnrender _ = pure . Encoding.decodeUtf8 . toStrict
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.