Did she have any fleas? They can cause worms and anemia as well and can kill a pup quite quickly.
I am sorry things didn't work out but maybe it was for the best.
I am sorry but the one thing I can't stand is a puppy that is sick that can easily be prevented. If you saw the worms in her stool then there is no doubt that the breeder had to see them. And for it to have a lot of worms means that the pup has had them for awhile. And the ears, how is that not noticeable?
I am sorry for rambling on but this just makes me so angry. At the very least you expect the pup to free from worms, mites and fleas. It is the least a breeder can do before sending a pup to a new home.
I am really sorry things didn't go better and you had to go through this. And I really pray that the breeder takes proper care to get Carly better.