Sift the flour into a bowl and rub in the butter until the mixture resembles fine breadcrumbs.
Stir in the caster sugar, then mix to a dough with the egg yolk and a little cold water if necessary.
Wrap in clingfilm and leave to rest in the fridge for 20-30 minutes.
Roll out on a lightly dusted work surface and use to line a 9 inch loose-bottomed flan tin.
Bake blind, covering the base with baking paper or foil and fill with baking beans.
Bake in a preheated oven at 180C for 20 minutes.
Remove the beans and paper and return to the oven for 5-10 minutes until lightly coloured.