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

Export `Data.Functor.Const` from `Control.Monad.Dep`. #18

Closed danidiaz closed 2 years ago

danidiaz commented 2 years ago

Data.Functor.Const is kind-polymorphic and works as an environment type for DepT. It turns DepT into something very similar to vanilla ReaderT, where the environment doesn't make use of the monad.

danidiaz commented 2 years ago

In Data.Env I'm already using Data.Functor.Constant from transformers, maybe export that one instead.

danidiaz commented 2 years ago

Added in eb345d2989404bbef63273d5434b63db95531479.