Sweat the shredded carrots in the butter until just barely done. Add sugar, caramelize a little and season with salt. Set aside and let cool.
Mix the carrots with the ricotta, parmesan, flour and mashed potatoes, season with salt and pepper. Stir in egg and yolk.
Heat salt water in a large saucepan and keep it at the boiling point. Use lightly floured fingers to form approx. 12 dumplings from the carrot and ricotta mixture. Let simmer in salted water for approx. 10 minutes.