Correspondence between flat connections with regular singularities on algebraic vector bundles and representations of the fundamental group