There is provided compounds of formula I,
##STR1##
wherein R1, R2, R3, R4, R5a,
R5b, R6, X, A, B and D have meanings given in the description,
which are useful in the prophylaxis and in the treatment of arrhythmias, in particular
atrial and ventricular arrhythmias.