In Python, we have a built-in package, named "operator", with which we can use function version of any operator. It is highly used when using "functional Programming" functions like map and reduce, and is much better recommended than using "lambda".
I have the same problem in Haskell: I want t user mapM somewhere with a composition of many functions but I have to use not-so-pretty lambda:
mapM ((\x->x::String).fromSql.(!!1)) res
Is there any equivalent to that liek this:
mapM (someFunc(String).fromSql.(!!1)) res
mapM (asTypeOf "".fromSql.(!!1)) res-- unless you haveXOverloadedStringson. - MichaelmapM (fromSql.(!!1)) resisn't sufficient, ormapM ((fromSql.(!!1)) :: a -> String) res? - chepner