This invention relates to novel compounds which are inhibitors of the Rearranged during Transfection (RET) kinase, to pharmaceutical compositions containing them, to processes for their preparation, and to their use in therapy, alone or in combination, for the normalization of gastrointestinal sensitivity, motility and / or secretion and / or abdominal disorders or diseases and / or treatment related to diseases related to RET dysfunction or where modulation of RET activity may have therapeutic benefit including but not limited to all classifications of irritable bowel syndrome (IBS) including diarrhea-predominant, constipation-predominant or alternating stool pattern, functional bloating, functional constipation, functional diarrhea, unspecified functional bowel disorder, functional abdominal pain syndrome, chronic idiopathic constipation, functional esophageal disorders, functional gastroduodenal disorders, functional anorectal pain, inflammatory bowel disease, proliferative diseases such as non-small cell lung cancer, hepatocellular carcinoma, colorectal cancer, medullary thyroid cancer, follicular thyroid cancer, anaplastic thyroid cancer, papillary thyroid cancer, brain tumors, peritoneal cavity cancer, solid tumors, other lung cancer, head and neck cancer, gliomas, neuroblastomas, Von Hippel-Lindau Syndrome and kidney tumors, breast cancer, fallopian tube cancer, ovarian cancer, transitional cell cancer, prostate cancer, cancer of the esophagus and gastroesophageal junction, biliary cancer, adenocarcinoma, and any malignancy with increased RET kinase activity.