Preheat the oven to 375 degrees. Position an oven rack in the middle of the oven. Have a 9-inch deep dish pie shell ready (thaw if necessary).
1 deep-dish pie shell
Mix the grated cheese and flour in a large bowl. Toss gently so the flour coats the cheese. Set aside.
6 ounces sharp cheddar cheese, 1 tablespoon flour
Add the butter to a small skillet over medium heat. Saute the onion and bell pepper in the butter until the onion is wilted and translucent. Take care not to let the onion brown.
1 tablespoon butter, ½ cup finely chopped onion, ⅓ cup finely chopped green bell pepper
Add the ham, along with the onion and bell pepper mixture to the bowl with the grated cheese. Stir gently but thoroughly. Spread mixture in bottom of the unbaked pie shell. Set the filled pie shell on a rimmed baking sheet.
1 ½ cups cubed cooked ham
Combine the remaining ingredients in a medium bowl. Mix thoroughly and pour over the ham-cheese mixture in the pie shell.