Skip to content

Increasing the amount of re-exporting in Data.X #619

Description

@mechvel

Suppose that one has to use _+_, divMod, gcd, +-comm -- all for Nat.
One is forced to write

open import Data.Nat ...
open import Data.Nat.DivMod ...
open import Data.Nat.GCD ...
open import Data.Nat.Properties ...

But normally, of a common reason, it needs to be only
open import Data.Nat using (_+_; divMod; gcd; +-comm).

A similar approach is desirable to other domain constructors: Integer, Bin, List, Maybe, and so on.
Can standard library organize this?
May be, to import Data.Nat.Properties to Data.Nat as public
(with hiding unneeded items)
-- ?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions