Type-level DI Container prototype

added by DotNetKicks
2/1/2022 5:42:11 PM

208 Views

A fairly pointless Haskell exercise. This article is part of a series called Type-safe DI composition. People sometimes ask me how to do Dependency Injection (DI) in Functional Programming, and the short answer is that you don't. DI makes everything impure, while the entire point of FP is to write as much referentially transparent code as possible.


0 comments