[Haskell-cafe] How to use Reader?
Hilco Wijbenga
hilco.wijbenga at gmail.com
Thu Jun 21 04:03:50 UTC 2018
I'm not quite there yet. How can I create a fold over [Reader Config Text]?
myFold :: [Reader Config Text] -> Reader Config Text
(using `append` and "")
I can easily handle [] and singleton but I'm lost when I get to longer
lists. In any case, there must be a better way to do this. Maybe
something with foldM?
I tried implementing the more explicit [Config -> Text] -> (Config ->
Text) but I didn't get any further.
Can someone give me a hint?
More information about the Haskell-Cafe
mailing list