There are situations when the expression "to have to" follows by the main verb of the sentence, such as:
I regret to have to inform the Committee that it has failed.
I don't want to have to warn you again.
I don't want to have to part with this mug.
Could you explain me what the function of this expression in this sentences?