  The geometric phase that appears in the effects of Aharonov-Bohm type is
interpreted in the frame of Deligne's version of the Riemann-Hilbert
correspondence. We extend also the concept of flat gauge field to $B$-branes
which are coherent sheaves, so that such a field on a sheaf turns it into a
holonomic regular $D$-module.
