scrive / pool

A high-performance striped resource pooling implementation for Haskell
Other
18 stars 11 forks source link

`PoolConfig` is exposed, any extra config params are a breaking change #14

Closed parsonsmatt closed 1 year ago

parsonsmatt commented 1 year ago

Fixing #13 by adding a config parameter is a breaking change, taking us directly to 0.4 series.

I'd suggest hiding the constructor in .Internal and exposing a function for the necessary steps (most likely, exactly what is in createPool). Then further new settings/fields can be added with setter functions and providing defaults.