In a large bowl stir together the flour, sugar, baking powder, salt, walnuts, cinnamon, and apple pieces. Pour the beer and butter into the dry ingredients, stir until just combined. Pour into a greased 1.5 qt loaf pan. Pour the caramel over the top of the loaf.