haskell-servant / haskell-servant/servant

No instance for (Servant.API.ContentTypes.AllCTRender '[] NoContent)

Open
#683 2 comments 0 reactions 0 assignees View on GitHub
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

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.