1. Take a small saucepan and add sugar, flour, and milk to it. Cook this mixture over medium heat, and continue to stir it till mixture gets thickened.
2. Add butter to this mixture and continue to stir till it gets melted. Fold in coconut, vanilla, and pecans to this mixture.