Test output depending on the I/O subsystem
20 Jan
2026
20 Jan
'26
2:31 a.m.
Hi! I have a `base` test that I’d like to be run on all platforms and, in the case of Windows, with both I/O subsystems: the POSIX one and the (native) Windows one. However, the output of this test depends on the choice of I/O subsystem. How do I implement such a test with GHC’s testing framework? Can I provide an extra golden file with a name of the pattern `*.stdout-winio` or similar, or do I have to create two tests, which would then use the exact same Haskell code? All the best, Wolfgang
49
Age (days ago)
49
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wolfgang Jeltsch