I can see why it doesn't work: you're trying to use Machinist on a module.
Assuming it worked, what would you expect it to do? Given that Machinist's job is to construct instances of classes, and there's no such thing as an instance of a module, what behaviour are you looking for?