Skip to content

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

Open
@ChristianSi

Description

@ChristianSi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions