haskell-servant / haskell-servant/servant
No instance for (AllCTRender '[] ())
Open
documentation
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
I'm getting the following error:
```
No instance for (Servant.API.ContentTypes.AllCTRender '[] ()) …
arising from a use of ‘serveWithContext’
```
when using API types such as `Post '[] ()` as in the tutorial examples.
I'm able to solve this with:
```
instance AllCTRender '[] () where
handleAcceptH _ _ _ = Nothing
```
but then I get this warning:
```
Warning: …
Orphan instance: instance AllCTRender '[] ()
```
Shouldn't this instance already be defined in `Servant.API.ContentTypes`?
Contributor guide
Assessment
This issue has not been assessed yet.