Under what soil conditions a farmer would treat the soil of his fields

Under what soil conditions a farmer would treat the soil of his fields with quicklime (Calcium hydroxide) or calcium carbonate ?

If the soil is acidic in nature the farmer would treat the soil of his fields with quick lime (calcium hydroxide) or calcium carbonate to neutralize the acidic nature of soil.