Wrong type definition in api-type.html#response-headers
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- haskell
- Domain
- documentation
Research direction
Open the response-headers section of api-type.html in the tutorial and compare the UserAPI example with the issue's corrected definition. Update the header type syntax, then verify that the example compiles.
Written by the indexing model from the issue text.
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.
- Dominant language
- Haskell
- Stars
- 18
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haskell-servant/haskell-servant.github.io
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
haskell-servant/haskell-servant.github.io#62 · 5 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
haskell-servant/haskell-servant.github.io#61 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
haskell-servant/haskell-servant.github.io#59 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in haskell-servant/haskell-servant.github.io
Similar issues
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
koalaman/shellcheck#3539 ·
-
time-manager-0.4.0 Openfailure: bounds
Difficulty 1/5 Under an hour Newbie friendliness 72/100
commercialhaskell/stackage#8122 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
objectionary/phino#1350 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100