Haste specifically says in its description:
That [additional] action can be used only to take the Attack (one weapon attack only), Dash, Disengage.... (PHB 250.)
So you're hasted: you Attack with your action, and Extra Attack allows you to make two attacks. Now you take another (full) action granted by haste, and choose Attack. But this Attack is not amenable to Extra Attack--you can only make one weapon attack with it. That's three attacks in total.
Related: Haste spell: what does "one weapon attack only" mean?