External Publication
Visit Post

Parse literate Haskell file

Haskell Community [Unofficial] March 23, 2026
Source

tldr: is it possible to parse a literate Haskell file with parseModuleEpAnnsWithCppInternal?

longer question: I’m trying to contribute to doctest-parallel so that it is able to handle literate Haskell files.

Currently I get to a point where parseModuleEpAnnsWithCppInternal is called and fails with the following error message

parse error on input `>'

indicating that it is not able to parse a literate Haskell file. Is there a way to parse a literate Haskell file this way? Maybe setting something in the CppOptions or in the DynFlags arguments?

Discussion in the ATmosphere

Loading comments...