Heat oven to 375 degrees. Combine flour, sugar, salt, baking powder, dill, and cheddar in a large mixing bowl. Slowly stir in beer and mix just until combined. Batter will be thick. Spread in a greased 8-inch loaf pan , brush with egg glaze if desired, and bake until golden brown and a toothpick stuck in the center comes out clean, about 45 minutes.