I’m depending on pandoc, and I’m starting to regret my life choices. Pandoc is of course great, but it takes absolutely forever to compile. I’m using only a tiny subset of pandoc’s full functionality, so it’s frustrating to watch it spend ages compiling a bunch of stuff I’m not going to use.
Does the Haskell ecosystem have anything similar to rust’s “feature flags”? They provide a means for library authors to give library consumers options regarding what functionality from the library they want to compile.
I would assume the answer is probably no, or I probably would have heard about it. So my second question, assuming that’s the case, is whether this feature has ever been discussed in the the context of Haskell. How feasible is it? Is there anything about Haskell that would make it uniquely difficult to implement?