DEV Community

Discussion on: Grokking the Reader Monad

Collapse
 
dlidstrom profile image
Daniel Lidström

To run the function in the appendix, use Reader.run:

let paymentId = Reader.run (chargeUser (Domain.UserId "") 1.0) deps