error-message-index icon indicating copy to clipboard operation
error-message-index copied to clipboard

Somehow allow multiple "after" examples

Open isomorpheme opened this issue 2 years ago • 3 comments

See e.g. haskell/error-messages#65 where there's two possible solutions, so as a workaround I made before/Main1.hs and before/Main2.hs which are identical, but after/Main1.hs and after/Main2.hs which are different.

isomorpheme avatar Jun 11 '22 13:06 isomorpheme

How about having both examples in the same after?

something like

aFixedOneWay = ...

aFixedTheOther = ...

PPKFS avatar Jun 11 '22 14:06 PPKFS

Yeah that's another workaround I considered - the issue there would be if we eventually want to have before/after diffs, this wouldn't work as well.

isomorpheme avatar Jun 11 '22 14:06 isomorpheme

What if we tweaked the generator to treat any directory that matches the glob after* as a potential "after", and then multiplexed them appropriately?

david-christiansen avatar Jun 11 '22 14:06 david-christiansen