io-sim icon indicating copy to clipboard operation
io-sim copied to clipboard

Refactor package structure

Open coot opened this issue 2 years ago • 3 comments

Put si-timers, strict-stm and strict-mvar as public libraries of io-classes.

strict-mvar:test is left in test-strict-mvar as it introduces a cycle between io-sim and io-classes which cabal cannot resolve.

coot avatar Sep 28 '23 13:09 coot

It would be nice to get cabal changes to the haddock-project command before we merge it. I looked into and it seems doable, although requires a bit of thinking to get all the parts right. Once new version of cabal is published we can use it to publish haddocks on Github Pages, until Hackage also supports public sub-libraries (which if I am lucky :wink: I will also fix in the same set of changes).

coot avatar Oct 24 '23 13:10 coot

strict-mvar:test is left in test-strict-mvar as it introduces a cycle between io-sim and io-classes which cabal cannot resolve.

One alternative would be to split the tests, moving the ones for IO to io-classes, and the ones for IOSim to io-sim. The properties could be put in a separate sublib in io-classes so io-sim can reuse them

jorisdral avatar Feb 17 '24 18:02 jorisdral

@jorisdral done;

cabal PR haskell/cabal#9821 was merged, so with next cabal release we can merge it.

coot avatar Jul 01 '24 12:07 coot