Skip to content

Instance resolution bug with Functor-Vec #27

@WhatisRT

Description

@WhatisRT

This code fails to check:

module Test where

open import Class.Prelude
open import Class.Functor

private variable X Y : Type

test :  {f : X} {x : Maybe (List Y)}  fmap (_++ []) x ≡ just []
test = {!!}

See agda/agda#8316 for full context. In this case, we get the following error:

  Resolve instance argument _r_13 : Functor _F_32
  Candidates
    Functor-Maybe : Functor Maybe
    Functor-Vec : ({n : ℕ} → Functor (flip Vec n))
    (stuck)

Note that there is absolutely no reason that Vec should show up here. So I'd suggest we mark Functor-Vec as INCOHERENT (or just not as an instance at all) for now. Thoughts @omelkonian?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions