Expressing obligation and necessity
Notice the negative forms have very different meanings.
Don’t have to expresses freedom of choice, can’t expresses prohibition.
You don’t have to eat the vegetables – it’s up to you.
You can’t eat the mushrooms – they’re poisonous!
Haven’t to is not a correct negative form.