Inhibitors of sodium glucose cotransporter 1 (SGLT1), compositions comprising them, and methods of their use to treat diseases and disorders such as diabetes are disclosed. Particular compounds are of the formula: n nthe various substituents of which are defined herein.