Skip to content
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

[Import] Data.List.* #2625

Merged
merged 10 commits into from
Mar 1, 2025
Merged

[Import] Data.List.* #2625

merged 10 commits into from
Mar 1, 2025

Conversation

jmougeot
Copy link
Contributor

No description provided.

@jamesmckinna
Copy link
Contributor

Something's broken concerning (missing import?) Pointwise equality on lists.

@@ -8,14 +8,14 @@

module Data.List.NonEmpty.Effectful where

open import Agda.Builtin.List
open import Agda.Builtin.List using (List; _∷_; [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going directly into Data.Builtin.List is not a good idea here, it should use Data.List.Core instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JacquesCarette you meant Agda.Builtin.List and Data.List.Base, I think?

Not quite sure why this module seemed to be originally based off Agda.Builtin.List, there are usually only two (acceptable!?) reasons for that:

  • breaking a dependency cycle (occasionally)
  • a MWE mindest of using only 'minimal commitments' to dependency (almost never now)

In any case, @jmougeot : please do not touch any imports from Agda.Builtin.* (nor from modules marked altogether as DEPRECATED...)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typo in both cases!!! Serves me right for doing this fairly late after a long day.

I'm pretty sure this use of Agda.Builtin.List is a mistake - but you're right that it likely should be cleaned up in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I took the executive decision to resolve this as part of your 'cleanup': precisely because the overall strategy of narrowing imports via using directives actually resolves a non-trivial dependency/ambiguity issue which AFAICT was responsible for the original appeal to Agda.Builtin. A separate PR would have been excessive, I think.

Copy link
Contributor

@jamesmckinna jamesmckinna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly 'the usual' comments about layout style, using etc.
Otherwise looks fine.

Copy link
Contributor

@jamesmckinna jamesmckinna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the appeal to Agda.Builtin, otherwise all looks fine.
@JacquesCarette are you happy too?

Resolves question about use of `Agda.Builtin` here.
Originally it solved a dependency/ambiguity conflict, but the generally strategy of localising imports pays off in this case!
…s.agda


Reorder to reflect conventions on dependency.
@JacquesCarette JacquesCarette added this pull request to the merge queue Mar 1, 2025
Merged via the queue into agda:master with commit 10e115d Mar 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants