In Base, collection modules such as Set and Map contain a functor M which is useful for referring to the type of a collection produced by a comparator:
type 'a int_map = 'a Map.M(Int).t
However, this doesn't appear to be a part of the Core versions of Set and Map. It would be nice to have, especially now that Core is going in Base's direction of not requiring a new module for each key type.
I think this is just an omission on our part. I've been running into the same thing as I've been looking at using Base more in RWO. I'll see if we can get this resolved.
In Base, collection modules such as
Set
andMap
contain a functorM
which is useful for referring to the type of a collection produced by a comparator:However, this doesn't appear to be a part of the Core versions of
Set
andMap
. It would be nice to have, especially now that Core is going in Base's direction of not requiring a new module for each key type.