Search Haskell Channel Logs

Monday, February 6, 2017

#haskell channel featuring jchia, jle`,

jchia 2017-02-06 18:31:57
I have a ReaderT do block that I want to runReaderT on, but because of the argument order, I can't just do runReaderT r $ do ..., and runReaderT (do ...) r is ugly. How can I do better?
jle` 2017-02-06 18:32:17
jchia: a common pattern is flip runReader r $ do ...
jchia 2017-02-06 18:33:30
jle`: Thanks
jle` 2017-02-06 18:34:02
no problem!
jle` 2017-02-06 18:34:18
the flipped version is useful much more often than the unflipped one