They eat fish flakes, algae wafers, and anything the fish neglect to eat. They'll basically keep the bottom of your tank clean. However, don't put them in fry tanks, or they'll snare your fry and eat them, too.
If you do get some ghost shrimp, give them some place to hide when they are molting, or else they'll be easy targets for some hungry fish.