Skip to content

pattern synonym in Nat.Base in the way when working with products #2250

Closed
@flupe

Description

@flupe

I'm currently working in a development importing both Data.Product.Base and Data.Nat.Base.

Every time I have a hole of type Σ A B and I refine said hole, the following pattern gets introduced: less-than-or-equal {?} ? instead of ? , ?. This stems from a pattern-synonym recently introduced in Nat.Base: https://github.com/agda/agda-stdlib/blame/3515c22f3a2c1bd2eeb5fdd504072f67aab3de4d/src/Data/Nat/Base.agda#L366

Am I doing something wrong? Or maybe this pattern-synonym should not stay in Nat.Base?

To reproduce, just try to refine the hole in the following code sample:

open import Data.Unit.Base
open import Data.Nat.Base
open import Data.Product.Base

t : ⊤ × ⊤
t = {!!}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions