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

Add warning about "zoomEnv" #7

Closed danidiaz closed 3 years ago

danidiaz commented 3 years ago

zoomEnv has a scary signature, and it isn't necessary to embed records in other records in all cases.

If we leave the monad polymorphic and only "commit" to DepT after composing the nested record value as a whole, zoomEnv doesn't seem to be necessary.

danidiaz commented 3 years ago

Added in 5b6654fa47ec08e74503ffbb600cd438e83ef6a3.