Has anyone had any success fighting cavalry intensive Macedonians using a Roman army that is predominantly infantry, but without triarii?

Although I try to avoid fighting battles with unbalanced armies, on a couple of occasions now I have brought mostly infantry troops to the field and watched my hastati fold like a deck of cards when dealing with Mac lancers.

I believe that I read somewhere that hastati, as a rule, don't do well with cav. Do princeps work noticably better?

Just kind of curious.....