From what I know I think this is getting thrown because the functor is exposed to potentially any M getting passed in thus it doesn’t know what the M will take thus it can’t inline it.
I’d expect that what I want to do is to just not expose this module, however I can’t see quite how to do that. I’ve poked at the private_modules field in the dune file however that doesn’t seem to have had any effect.