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

Cannot find type `Set` #293

Closed
ericariello opened this Issue Jul 10, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@ericariello

ericariello commented Jul 10, 2015

------- message from online compiler
NAMING ERROR
Cannot find type Set

44| update : (Time.Time, Set KeyCode) -> Program -> Program
Maybe you want one of the following?

Int

------- if I add "import Set"
NAMING ERROR
Cannot find type Set

45| update : (Time.Time, Set KeyCode) -> Program -> Program
Maybe you want one of the following?

Int
Set.Set

------ if I change to "import Set.Set
NAMING ERROR
Could not find a module named Set.Set

7| import Set.Set

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Jul 10, 2015

Contributor

Either of these should work:

import Set

update : (Time.Time, Set.Set KeyCode) -> Program -> Program

or:

import Set exposing (Set)

update : (Time.Time, Set KeyCode) -> Program -> Program
Contributor

jvoigtlaender commented Jul 10, 2015

Either of these should work:

import Set

update : (Time.Time, Set.Set KeyCode) -> Program -> Program

or:

import Set exposing (Set)

update : (Time.Time, Set KeyCode) -> Program -> Program
@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Jul 10, 2015

Contributor

What I really meant to say is that both of my above versions should work.

Contributor

jvoigtlaender commented Jul 10, 2015

What I really meant to say is that both of my above versions should work.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Aug 30, 2015

Contributor

@ericariello, do my comments above address your concern? Can this issue be closed?

Contributor

jvoigtlaender commented Aug 30, 2015

@ericariello, do my comments above address your concern? Can this issue be closed?

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Sep 11, 2015

Contributor

I'm closing this, as the comments above should address the issue in terms of using the imports correctly. If the feedback from the compiler is the problem, opening an issue at https://github.com/elm-lang/error-message-catalog could prepare the ground for an improved error message.

Contributor

jvoigtlaender commented Sep 11, 2015

I'm closing this, as the comments above should address the issue in terms of using the imports correctly. If the feedback from the compiler is the problem, opening an issue at https://github.com/elm-lang/error-message-catalog could prepare the ground for an improved error message.

@ericariello

This comment has been minimized.

Show comment
Hide comment
@ericariello

ericariello Sep 21, 2015

Sorry for answering this late @jvoigtlaender:
Yes, your comment helped very much, thank you!

ericariello commented Sep 21, 2015

Sorry for answering this late @jvoigtlaender:
Yes, your comment helped very much, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment