Skip to content

Setoid parameter in algebra records #1238

@mechvel

Description

@mechvel

May be it is better for standard library to improve the record design for algebra?
We wrote about this recently in the Agda list.

  1. I complain on that (Magma.setoid +-magma) and (Magma.setoid *-magma) occurs not the same
    in Semiring. The same is for decSetoid. I do not find any better way out as introducing
    +-setoid and *-setoid in the application. And this does not look nice, it misleads the user.
  2. James Wood wrote there about certain tricks to fix the effect.
  3. I suggested (in the Agda mail list) the approach to improve the design, with attaching a piece
    of code.

Breaking backwards compatibility is not so bad at the current stage.
Because
a) so far, each new lib version still breaks almost all the user's application modules,
b) it is not difficult to port the application to a new version,
c) each application specifies the needed Agda version (and hence the lib version),
install this version and enjoy,
Probably, we need to continue this way until it becomes stable in somewhat a natural way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions