The present disclosure provides compounds of formula (I) that are tyrosine kinase inhibitors, in particular Bruton tyrosine kinase (“BTK”) inhibitors, and are therefore useful for the treatment of diseases treatable by inhibition of BTK such as cancer, autoimmune, inflammatory, and thromboembolic diseases. Also provided are pharmaceutical compositions containing such compounds and processes for preparing such compounds.