I had two functions
f1:: String -> Int
f2:: String -> Int
f3:: String -> (Int,Int)
f3 = f1 &&& f2
then they was changed to String -> Maybe Int
f1:: String -> Maybe Int
f2:: String -> Maybe Int
f3:: String -> (Maybe Int,Maybe Int)
Is there pointfree way to get function
f4:: String -> Maybe (Int, Int)
So if both f1 and f2 return Just, f4 will also return Just otherwise Nothing
which is equal to
h f g x = liftA2 (,) (f x) (g x)
You can get pointfree version using
liftA2
, but I'm not sure if the point-free version is worth the trouble: