Skip to content

Example for "ambiguous type variable" error doesn't work anymore #25

@konsumlamm

Description

@konsumlamm

Chapter 3 has an example that read "4" produces an "ambiguous type variable" error. However, this is not the case anymore, since GHCi disables the MonomorphismRestriction, it now throws a "no parse" exception. The problem is that this is used to explain how to specify a type with an explicit type annotation.

I think the easiest solution would be to simply put the definition in a file. Can you think of a better solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions