Skip to content

Conversation

@niksilver
Copy link

@niksilver niksilver commented Oct 26, 2019

The error message says:

-- UNBOUND TYPE VARIABLE ---------------------------------- typo-not-unbound.elm

The `Counter` type alias uses an unbound type variable `int` in its definition:

1| type alias Counter =
2|   { i : int }
           ^^^
You probably need to change the declaration to something like this:

    type alias Counter int = ...

Maybe it is an unbound type variable. But maybe I just made a typo and should have used a
capital letter.

This won't just happen with builtin types, of course. In my own application
I defined my own type called Column and got the above error when I mistyped it as column.

@niksilver niksilver changed the title Added example querying an unbound type varible Added example querying an unbound type variable Oct 26, 2019
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.

1 participant