Definition of the dapsone are antibacterial drug used to treat leprosy and some kinds of skin diseases .