Skip to content
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

Explain import early on guide.elm-lang.org #883

Open
MatthewCroughan opened this issue Dec 18, 2022 · 0 comments
Open

Explain import early on guide.elm-lang.org #883

MatthewCroughan opened this issue Dec 18, 2022 · 0 comments

Comments

@MatthewCroughan
Copy link

The import keyword seems magical. As a newcomer to Elm, I read https://korban.net/posts/elm/2019-11-17-elm-ui-introduction/, it explains that I should:

  1. elm install mdgriffith/elm-ui
  2. import Element exposing (..)

From these two steps, as a noob, I cannot possibly understand that Element is actually something that is derived from the src folder of elm-ui, other than by going to the Slack/Matrix channels and asking the question "Where does Element come from?"

ls ~/.elm/0.19.1/packages/mdgriffith/elm-ui/1.1.8/src/
Element  Element.elm  Internal

It would be helpful if the elm-guide could explain the import keyword early on, so that I can understand where import is searching for module names.

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

No branches or pull requests

1 participant