The principal science goal of directly imaging exoplanets is spectroscopy. Future mission concepts such as LU- VOIR and HabEx have baselined their science instruments to use an integral field spectrograph (IFS) to maximize observing efficiency. Coronagraphic imaging with an IFS has strong heritage at ground observatories, having produced planet and brown dwarf near-infrared spectra at contrast floors as low as high 1 × 10<sup>-6</sup> levels. As a technology demonstration for future missions the WFIRST coronagraph instrument (CGI) will demonstrate the ability to measure spectra in visible light with at contrast levels sufficient for detecting Earth-like planets. The spectrograph was originally meant to match that of future missions; an independent IFS channel for wavefront control and imaging spectroscopy. Due to a series of de-scopes as the project progressed, the baseline spectroscopic capability of CGI is no longer an IFS but a zero deviation optical prism and slit used in conjunction with the direct imaging camera. Regardless, CGI advanced a lenslet IFS through the preliminary design phase of a flight project. Here we present that development as the challenges and requirements of an IFS for coronagraphy are quite unique and relevant to future missions. With that development in place, we also present the initial design of the zero optical deviation prism, highlighting the relative challenges and performance of each concept.