Actually getting values out of such a module-typed structure does involve some ceremony, however:
let f = let module M = (val my_foobar) in M.foo