# \#comparator

**URL:** https://discuss.ocaml.org/tag/comparator/626.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Asking for the correct way to use Core module with functor and \`sexp\`](https://discuss.ocaml.org/t/asking-for-the-correct-way-to-use-core-module-with-functor-and-sexp/13163)

<div class="topic-metadata">

**Author:** [@arbipher](https://discuss.ocaml.org/u/arbipher)\
**Replies:** 3\
**Last updated:** [October 5, 2023, 11:37pm UTC](https://discuss.ocaml.org/t/asking-for-the-correct-way-to-use-core-module-with-functor-and-sexp/13163 "2023-10-05T23:37:07Z")

</div>

I have this code that works. open Core module Int = struct module T = struct type t = int \[@@deriving compare, sexp\] end include T include Comparator.Make (T) end type m = string Map.M(Int).t \[@@deriving …
