Git Product home page Git Product logo

Comments (2)

phischu avatar phischu commented on June 21, 2024

Thank you for your report. To me these results look correct and expected, but that's because I know the library :). What did surprise you?

Your code looks great perhaps we can add it as an example how to use the library and what to expect?

from haskell-names.

chshersh avatar chshersh commented on June 21, 2024

@phischu You can add my code to library documentation. It would be great!

I wasn't so surprised... Just spend some time on experimenting with library to find out whether it's possible to do desired things and if yes then how.

  1. It wasn't clear that resolve can handle reexports from other modules (I was realy glad that haskell-names can handle such situations but first I tried to resolve each module independently to make things faster instead processing all of them in single list).
  2. It's not clear that resolve handles list of Modules at once, not one by one (first, then second using information from first, then third using information from first and second). So order doesn't matter and I don't need to sort modules topologically before putting them in list.
  3. Moreover, if Internal is already in Environment then [Module l] will have access to exported symbols by current env. List (first argument) is not processed independently from env (second argument).
  4. But! According to last example in my repo — values in given Environment are not updated with elements from list.

Basically, all elements in lists can use information about each others. And they can use information from Environment but Environment doesn't use information from list of modules to update already present values. If I wrote this in some notation I would do it like this:

Module ↔ Module
Module → Environment

where arrow A → B means that A can use information from B to configure Environment properly.

from haskell-names.

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.