Preheat oven to 180C. Grease and line a square pan roughly 22cmx22cm.
In a large bowl combine flour, sugar and a generous pinch of salt, then rub in butter with fingertips until it resembles breadcrumbs. Add egg and stir to form a dough.
Press dough into the base of the prepared pan then bake for 15 minutes or until golden. Spread the raspberry jam on top while warm. Then pour over melted chocolate and sprinkle coconut on top.