Skip to content

Fix T9 example #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorial/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ readerToEither' :: forall a. Reader String a -> EitherT ServantErr IO a
readerToEither' r = return (runReader r "hi")

readerToEither :: Reader String :~> EitherT ServantErr IO
readerToEither = Nat . readerToEither'
readerToEither = Nat readerToEither'
```

We can write some simple webservice with the handlers running in `Reader String`.
Expand Down Expand Up @@ -1233,4 +1233,4 @@ You're now equipped to write any kind of webservice/web-application using *serva
<div style="text-align: center;">
<p><a href="/tutorial/api-type.html">Previous page: A web API as a type</a></p>
<p><a href="/tutorial/client.html">Next page: Deriving Haskell functions to query an API</a></p>
</div>
</div>