The following section is not part of monet.js
documentation, but I think it's worth showing how we can compose readers using fp-ts
.
Let's say we have the following piece of code:
interface Dependencies {
logger: { log: (message: string) => void }
env: 'development' | 'production'