input-output-hk / io-sim

Haskell's IO simulator which closely follows core packages (base, async, stm).
https://hackage.haskell.org/package/io-sim
Apache License 2.0
37 stars 15 forks source link

Attach label to TVars mentioned in Effects #174

Closed jasagredo closed 2 weeks ago

jasagredo commented 2 weeks ago

This ensures that TxCommitted events will also print labels in the Effect. Otherwise we get something like

TxCommitted [Labelled TVarId 0 SharedState] ... Effect { writes = [TVarId 0] }

now it will print:

TxCommitted [Labelled TVarId 0 SharedState] ... Effect { writes = [Labelled TVarId 0 SharedState] }