Hi there,<br><br>I have created a function mkc:<br><br clear="all">mkc :: (a -> b) -> a -> m b<br>mkc f = (\x -> return $ f x)<br><br>which works wonderful in statements like:<br><br>number <- many1 digit >>= mkc(read)<br>
<br>But somehow I think this function should already exist, it is some kind of lifting. If it exist where can I find it? Or is there a reason, why it isn't in prelude, because it is more elegant way to solve this problem. <br>
<br>Thanks in advance,<br><br>Edgar<br><br>