Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upI'm lazy and a newb, can I have a copy-and-paste instruction to install a package? #27
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Apanatshka
May 3, 2015
I think it's elm package install elm-lang/core as of 0.15. Where would you expect this information to be? That is, where is it missing?
Apanatshka
commented
May 3, 2015
|
I think it's |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evaryont
May 5, 2015
Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on elm-lang/core's page, there would be a code block for easy copy & paste to a user's shell to install the package, like Rubygems has (see the sidebar).
It had taken me a bit to realize what the exact command I was supposed to use to install packages is.
evaryont
commented
May 5, 2015
|
Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on It had taken me a bit to realize what the exact command I was supposed to use to install packages is. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Apanatshka
May 5, 2015
That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :)
Apanatshka
commented
May 5, 2015
|
That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :) |
Zinggi
referenced this issue
Nov 22, 2015
Closed
Feature: Show if the packages are compatible with the current elm version #128
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Zinggi
Nov 23, 2015
So I started implementing this, as I also found it lacking.
It currently looks like this:

There is a small hack there because I don't think this is currently possible in elm-html.
I used:
attribute "onClick" "this.select()"
Is this hack acceptable?
Would be cool if I could do this in elm-html with something like
selected model.selected
instead.
If you're ok with the design and if this hack is acceptable, I'm gonna send a pull request.
Let me know.
Zinggi
commented
Nov 23, 2015
Apanatshka
added
the
enhancement
label
Nov 26, 2015
evancz
referenced this issue
Aug 19, 2016
Closed
Package Management details on Getting Started page #571
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
megapctr
Oct 11, 2016
Is anyone working on this? I could try to prepare a PR.
IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc)
megapctr
commented
Oct 11, 2016
|
Is anyone working on this? I could try to prepare a PR. IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pete-a
Feb 19, 2017
IMO, NPM's solution is simple and effective:

E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use elm package
pete-a
commented
Feb 19, 2017
|
IMO, NPM's solution is simple and effective: E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
drathier
Mar 9, 2017
@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version.
drathier
commented
Mar 9, 2017
|
@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
megapctr
commented
Mar 9, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
drathier
Mar 9, 2017
@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time.
drathier
commented
Mar 9, 2017
|
@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time. |
evancz
added
request
and removed
enhancement
labels
Jul 11, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mandrolic
Jul 11, 2017
At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?"
mandrolic
commented
Jul 11, 2017
•
|
At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?" |
evaryont commentedFeb 28, 2015
A line along the following:
Of course, language and terms should be clarified but it gets the point across. Thoughts?