Idris2-boot icon indicating copy to clipboard operation
Idris2-boot copied to clipboard

AddClause does not not generate a correct clause for operators

Open petithug opened this issue 4 years ago • 0 comments

When using AddClause on an interface implementation, the operator clauses are invalid.

See also #248 and #247

Steps to Reproduce

Loading the following in the REPL and executing ":ac 4 Eq"

data Blah : Type where
  MkBlah : Blah

Eq Blah where

Expected Behavior

data Blah : Type where
  MkBlah : Blah

Eq Blah where
  (/=) x y = ?something_rhs

Observed Behavior

data Blah : Type where
  MkBlah : Blah

Eq Blah where
/= x y = ?/=_rhs

petithug avatar Mar 29 '20 18:03 petithug