haskell-servant / haskell-servant/servant

No instance for (AllCTRender '[] ())

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

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.