Git Product home page Git Product logo

Comments (6)

jvoigtlaender avatar jvoigtlaender commented on July 19, 2024

See https://groups.google.com/d/msg/elm-discuss/7JJyM1UkXsQ/vRGGaKQMayAJ.

from package.elm-lang.org.

jvoigtlaender avatar jvoigtlaender commented on July 19, 2024

I've implemented this: #60

from package.elm-lang.org.

jvoigtlaender avatar jvoigtlaender commented on July 19, 2024

@agrafix, maybe close this issue, or replace it with something describing what is desirable on top of #60 (which has been merged and is live on the package site).

from package.elm-lang.org.

agrafix avatar agrafix commented on July 19, 2024

Cool, thanks for your work! It does not work everywhere yet though? ( http://package.elm-lang.org/packages/elm-lang/core/2.1.0/Regex#find ). And it does not work across packages yet, correct? This is probably a compiler limitation?

from package.elm-lang.org.

jvoigtlaender avatar jvoigtlaender commented on July 19, 2024
  1. It only works (and will only ever work) for packages that are published with the now current Elm suite or later ones. The example package you give was either uploaded a while ago, or was uploaded recently but with outdated tools. The difference can be seen in the last entry of http://package.elm-lang.org/packages/elm-lang/core/2.1.0/docs/Regex.json. Whenever such a file has "generated-with-elm-version": "old", it won't profit from the type hyperlinking.
  2. And yes, it does not work across packages, and indeed that is because there is not enough information in the .json files. It would have to be put there by the compiler or upload tool. Prior to that, some design decisions would have to be made. Quoting Evan from the mailing list message already linked to above:

Doing it across packages is harder, because we do not have the package annotations there right now. So I'd say do it within first, then we can think about questions like, "when linking to another package, which version do I link to? Highest in declared bounds? The one the author was using?"

from package.elm-lang.org.

evancz avatar evancz commented on July 19, 2024

Agree with @jvoigtlaender, if further things are desired, open an issue describing it so we have a clean issue to look at.

from package.elm-lang.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.