agda2hs icon indicating copy to clipboard operation
agda2hs copied to clipboard

Check consistency of instances for unboxed records

Open flupe opened this issue 1 year ago • 0 comments

When defining an unboxed record, one gets to define new instances for type classes on the Agda side. Those instances never get compiled, and code that uses instances over boxed values will compile to code that uses underlying instances over the underlying values.

Hence, when defining an instance for a unboxed record, we:

  • need to make sure an instance for the underlying (boxed) type exists.
  • the behavior of the instance for the unboxed record is "consistent" with the one for the underlying type.

flupe avatar Jan 20 '24 17:01 flupe