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

Fix T9 example #20

merged 1 commit into from
Oct 12, 2015

Conversation

mgeisler
Copy link
Contributor

The example gave this compile error:

    Couldn't match type `EitherT ServantErr IO a0'
                  with `forall a. m0 a -> n0 a'
    Expected type: EitherT ServantErr IO a0 -> m0 :~> n0
      Actual type: (forall a. m0 a -> n0 a) -> m0 :~> n0
    In the first argument of `(.)', namely `Nat'
    In the expression: Nat . readerToEither'

Looking at the tutorial code showed that the extra . was the problem.

The example gave this compile error:

    Couldn't match type `EitherT ServantErr IO a0'
                  with `forall a. m0 a -> n0 a'
    Expected type: EitherT ServantErr IO a0 -> m0 :~> n0
      Actual type: (forall a. m0 a -> n0 a) -> m0 :~> n0
    In the first argument of `(.)', namely `Nat'
    In the expression: Nat . readerToEither'

Looking at the tutorial code showed that the extra "." was the problem.
jkarni added a commit that referenced this pull request Oct 12, 2015
@jkarni jkarni merged commit 5d7e7f2 into haskell-servant:hakyll Oct 12, 2015
@jkarni
Copy link
Member

jkarni commented Oct 12, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants