A compound of formula, or a pharmaceutically acceptable salt thereof: wherein: m is 0 or 1; n is 0 or 1; U is selected from N and CR a, wherein R a is selected from: (a) H and (b) -OH; V is selected from N and CR b, wherein R b is selected from: Hand C 1-6 alkyl; W is selected from -O-, -NR c -, and -CR d R d -; wherein R c is selected from: (a) H, (b) -OH, and (c) -C -C 1-6 alkyl, optionally substituted with -OH; each occurrence of R d is independently selected from: (a) H, (b) halogen, (c) -OH, (d) -NH 2, (e) -NH-C -C 1-6 alkyl, optionally substituted with -OH, (f) -NH-C -O-C 1-6 alkyl, (g) C 1-6 alkyl, optionally substituted 1-3 substituents independently selected from with -OH and halogen, and (h) -O-C 1-6 alkyl, optionally substituted with -OH; Y is selected from -O- and -CH 2 -; R is selected from: H, aryl, -O-aryl, -C -aryl, heteroaryl, and -O-heteroaryl, wherein each of the aryl of,, and and each of the heteroaryl of and is optionally substituted with 1-3 substituents independently selected from: (a) -OH, (b) halogen, (c) -CN, and (d) C 1-6 alkyl, optionally substituted with 1-3 halogens; each occurrence of R 1 is independently selected from: H, halogen, and C 1-6 alkyl, optionally substituted with -OH; R 2 is selected from: H, halogen, -OH, -O-C 1-6 alkyl, and C 1-6 alkyl, optionally substituted with -OH; each occurrence of R 3 is independently selected from: H, halogen, -OH, C 1-6 alkyl, optionally substituted with -OH, and -O-heteroaryl, optionally substituted with 1-3 halogens; and each occurrence of R 4 is independently selected from: H, halogen, C 1-6 alkyl, optionally substituted with 1-3 halogens, and C 3-6 cycloalkyl; or alternatively, the two R 4 groups together with the two carbon atoms to which they are attached form a 5-7 membered monocyclic or bicyclic carbocyclyl, optionally substituted with 1-3 substituents independently selected from (a) halogen and (b) C 1-6 alkyl. m is 0 or 1; n is 0 or 1; U is selected from N and CR a, wherein R a is selected from: (a) H and (b) -OH; V is selected from N and CR b, wherein R b is selected from: Hand C 1-6 alkyl; W is selected from -O-, -NR c -, and -CR d R d -; wherein R c is selected from: (a) H, (b) -OH, and (c) -C -C 1-6 alkyl, optionally substituted with -OH; each occurrence of R d is independently selected from: (a) H, (b) halogen, (c) -OH, (d) -NH 2, (e) -NH-C -C 1-6 alkyl, optionally substituted with -OH, (f) -NH-C -O-C 1-6 alkyl, (g) C 1-6 alkyl, optionally substituted 1-3 substituents independently selected from with -OH and halogen, and (h) -O-C 1-6 alkyl, optionally substituted with -OH; wherein R c is selected from: (a) H, (b) -OH, and (c) -C -C 1-6 alkyl, optionally substituted with -OH; (a) H, (b) -OH, and (c) -C -C 1-6 alkyl, optionally substituted with -OH; each occurrence of R d is independently selected from: (a) H, (b) halogen, (c) -OH, (d) -NH 2, (e) -NH-C -C 1-6 alkyl, optionally substituted with -OH, (f) -NH-C -O-C 1-6 alkyl, (g) C 1-6 alkyl, optionally substituted 1-3 substituents independently selected from with -OH and halogen, and (h) -O-C 1-6 alkyl, optionally substituted with -OH; (a) H, (b) halogen, (c) -OH, (d) -NH 2, (e) -NH-C -C 1-6 alkyl, optionally substituted with -OH, (f) -NH-C -O-C 1-6 alkyl, (g) C 1-6 alkyl, optionally substituted 1-3 substituents independently selected from with -OH and halogen, and (h) -O-C 1-6 alkyl, optionally substituted with -OH; Y is selected from -O- and -CH 2 -; R is selected from: H, aryl, -O-aryl, -C -aryl, heteroaryl, and -O-heteroaryl, wherein each of the aryl of,, and and each of the heteroaryl of and is optionally substituted with 1-3 substituents independently selected from: (a) -OH, (b) halogen, (c) -CN, and (d) C 1-6 alkyl, optionally substituted with 1-3 halogens; H, aryl, -O-aryl, -C -aryl, heteroaryl, and -O-heteroaryl, (a) -OH, (b) halogen, (c) -CN, and (d) C 1-6 alkyl, optionally substituted with 1-3 halogens; each occurrence of R 1 is independently selected from: H, halogen, and C 1-6 alkyl, optionally substituted with -OH; R 2 is selected from: H, halogen, -OH, -O-C 1-6 alkyl, and C 1-6 alkyl, optionally substituted with -OH; each occurrence of R 3 is independently selected from: H, halogen, -OH, C 1-6 alkyl, optionally substituted with -OH, and -O-heteroaryl, optionally substituted with 1-3 halogens; and each occurrence of R 4 is independently selected from: H, halogen, C 1-6 alkyl, optionally substituted with 1-3 halogens, and C 3-6 cycloalkyl; or alternatively, the two R 4 groups together with the two carbon atoms to which they are attached form a 5-7 membered monocyclic or bicyclic carbocyclyl, optionally substituted with 1-3 substituents independently selected from (a) halogen and (b) C 1-6 alkyl.