Pure melee warlocks with Hexblade are viable, but if you really want to play a melee warlock the better route is a paladin with a few levels dipped into warlock. That’s the business.