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

Get rid of redundant deps in System.Console.ANSI #1994

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

Saransh-cpp
Copy link
Contributor

Closes #1993

See #1993 (comment) and #1993 (comment)

  • redundant deps : Function.HalfAdjointEquivalence, Data.Product.Function.Dependent.Propositional
  • replaced Data.String import with Data.String.Base in Data.Nat.Show

redundant deps : `Function.HalfAdjointEquivalence`
		 `Data.Product.Function.Dependent.Propositional`

replaced `Data.String` import with `Data.String.Base` in `Data.Nat.Show`
@jamesmckinna
Copy link
Contributor

What about the import of True in Data.Nat.Show from Relation.Nullary.Decidable...
... should this be narrowed to Relation.Nullary.Decidable.Core?

(A genuine question for the library experts as well: how narrow should we make things on import?)

@MatthewDaggitt
Copy link
Contributor

Generally if you're in a module that focuses on definitions, then usually you want to be strict in your imports. If you're in a module that focuses on proofs then there's often not much to be gained by being stricter. The exception to the former is if your data types include proofs within them.

@MatthewDaggitt MatthewDaggitt merged commit 0dd231d into agda:master Jun 19, 2023
@MatthewDaggitt
Copy link
Contributor

Thanks @Saransh-cpp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependencies of System.Console.ANSI
3 participants