danidiaz / dep-t

Dependency injection for records-of-functions.
http://hackage.haskell.org/package/dep-t
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Should `Constructor` and `AccumConstructor` be newtypes? #28

Closed danidiaz closed 1 year ago

danidiaz commented 1 year ago

How to make the transition without an immediate breaking change? Deprecate the types in Dep.Env (including fixEnv and fixEnvAccum and add the new versions in a separate modle Dep.Constructor. This would give us the added bonus of having a natural place to explain how "DI by tying the knot" works.

danidiaz commented 1 year ago

Added in 2c8aef6611a2f395596b75c723c8aca05662615d.