made Function/Utils.hs generic over Function