haskell-servant / haskell-servant/servant
No instance for (Servant.API.ContentTypes.AllCTRender '[] NoContent)
Open
bug
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
I encountered the following error
```
• No instance for (Servant.API.ContentTypes.AllCTRender
'[] NoContent)
arising from a use of ‘serveWithContext’
```
when I used the API type ` DeleteNoContent '[] NoContent`.
The error went away when I changed the type to `DeleteNoContent '[JSON] NoContent`, but specifying `[JSON]` for `NoContent` seems a bit arbitrary to me.
Contributor guide
Assessment
This issue has not been assessed yet.