Skip to content

Add "compare" function and got error message #175

@XuJiandong

Description

@XuJiandong

I just append a function "compare" to one of the module:

let compare _ _ = 0 (* implementation removed*)

In order to support Map, Something like this:

module PathMap = Map.Make(Path)

But got error message below. Is there any more explanation or solution to this?

  38 |   | Tunivar of string option
  39 |   | Tpoly of type_expr * type_expr list
> 40 |   | Tpackage of Path.t * Longident.t list * type_expr list
  41 | 
  42 | and row_desc =
  43 |     { row_fields: (label * row_field) list;


It is unclear which name this signature has. At least two similar
signatures found, namely:

* Stdlib__map.OrderedType
* Stdlib__set.OrderedType

We were looking for a module signature name for the following shape:
[ compare ]
(a shape is a list of names of values and sub-modules)

We use the concept of shape to find the name of a signature for Coq.

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