[Haskell-cafe] idea: <package>-latest URLs for Hackage
Tikhon Jelvis
tikhon at jelv.is
Thu Jul 9 21:54:57 UTC 2015
I believe Hackage already supports urls like that if you leave the version
out: http://hackage.haskell.org/package/base/docs/Control-Monad.html
This automatically redirects you to the latest version.
The problem, then, is visibility both to users and to Google. Since it's an
actual redirect, your URL bar will show the specific version when you
follow the link. The version number will also show up if you copy the URL
from one of the links on the contents page even if you got there without
specifying a version. (By following http://hackage.haskell.org/package/base
for example.)
I'm not sure if this is an intentional design or just a quirk of the
implementation.
One thing to keep in mind: how would you handle "latest" URLs for modules
that have since been removed from the package? Presumably, we'd still want
something showing up in Google results or if people follow an old link,
after all.
On Jul 9, 2015 2:46 PM, "Ömer Sinan Ağacan" <omeragacan at gmail.com> wrote:
> It's very convenient to have a persistent URL linked to latest
> version. GHC user manual has
> this(https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/)
> and you can create a bookmark with that URL and it stays up-to-date,
> it appears in first place in Google queries etc.
>
> I'm wondering why not implement this for Hackage too? For example,
> hackage.haskell.org/package/base-latest,
> hackage.haskell.org/package/base-latest/docs/<module-name>.html etc.
>
> Any ideas?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150709/893708d9/attachment.html>
More information about the Haskell-Cafe
mailing list