[Haskell-beginners] Signature of monadic functions
Lorenzo Tabacchini
lortabac at gmx.com
Thu Oct 17 09:13:50 UTC 2013
I think I am looking at the problem in a wrong way...
What I want to do is using higher-order functions with IO (or an IO-based transformer).
For example, let's say I want to apply a function to all the keys in a Map.
With pure functions, I would do:
Map.mapKeys doSomething myMap
But let's suppose the function has a signature:
doSomething :: a -> IO b
Is there an easy way to apply it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131017/e6e11506/attachment.html>
More information about the Beginners
mailing list