haskell-servant / haskell-servant/haskell-servant.github.io

Wrong type definition in api-type.html#response-headers

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
18
Forks
21
PR merge metrics
No merged PRs in 30d

Description

In https://haskell-servant.github.io/tutorial/api-type.html#response-headers, the line

```
type UserAPI = "users" :> Get '[JSON] (Headers [Header "User-Count" Integer] [User])
```

should read

```
type UserAPI = "users" :> Get '[JSON] (Headers '[Header "User-Count" Integer] [User])
```

otherwise the example won't compile.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.