-
Notifications
You must be signed in to change notification settings - Fork 46
Move agda2hs.agda-lib into lib directory and rename to base.agda-lib
#405
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
Move agda2hs.agda-lib into lib directory and rename to base.agda-lib
#405
Conversation
090d967 to
20e544f
Compare
jespercockx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a sensible change to me. It's a bit of a pain that users have to update their libraries file, but there's not much we can do about that.
Perhaps this is worth doing in one go so at least users only have to do a single update. |
Sure, I can change this pull request to also rename the library — I just wasn't quite sure whether people consider this a good idea. For renaming, I see the following options:
I think I prefer 2. 🤔 |
|
@HeinrichApfelmus I don't quite understand the monolithic approach of having That way, we retain the current configuration and name the library files like so:
|
There are two slightly different questions here:
My impression was that we all agree that the answer to the first question is "yes" — the design principle being that we mirror the exact separation of libraries on the Haskell side. The separation of libraries raises a small naming issue: Should we call the For the second question, I would argue that "no, for the time being". I see two arguments in favor of a monorepo for these two libraries:
Note that these arguments do not address the question "what is the desired end state?", but the question "how do we get there?". Once |
|
These are some excellent points for keeping containers in the base repo for the time being; let's revisit once we have a more stable ecosystem, in which case we should follow what Haskell does (i.e. put containers in a separate repo as in https://github.com/haskell/containers). Onto library file naming. I am fine with dropping the So, please go ahead with the renaming you initially suggested. |
docs/source/introduction.md
Outdated
| [`agda2hs.agda-lib`](https://github.com/agda/agda2hs/blob/master/lib/agda2hs/agda2hs.agda-lib) | ||
| - you can navigate the library in [HTML format](https://agda.github.io/agda2hs/lib/agda2hs/), | ||
| [`base.agda-lib`](https://github.com/agda/agda2hs/blob/master/lib/base/base.agda-lib) | ||
| - you can navigate the library in [HTML format](https://agda.github.io/agda2hs/lib/base/), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to check that these links still work and the documentation generating scripts do their job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have now run make libHtml locally and found that my previous change did not yield the desired result. I have updated the change, it should now work — the result is still in the html directory without prefix.
55a518d to
e0338e0
Compare
e0338e0 to
05f036d
Compare
agda2hs.agda-lib into lib directoryagda2hs.agda-lib into lib directory and rename to base.agda-lib
omelkonian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Heinrich!
This pull request
agda2hs.agda-liblibrary and the associated source code into thelib/agda2hsdirectory, andagda2hs.agda-liblibrary tobase.agda-libin order to mirror the Haskell base package.The idea is that additional libraries, such as
containerscan be added to thelib/directory in this repository. Such an arrangement makes sense as long as there is significant backflow of code fromcontainers.agda-libtobase.agda-lib, and makes it easier to split outcontainersat a later point.(EDIT: Accepted.
We may want to consider renaming the)agda2hs.agda-libtobase.agda-lib, in order to match up with the Haskell base package.