yjtools-0.9.6: some tools for Monad, List, Tuple and so on.

Data.Function.Tools

const2 :: a -> b -> c -> aSource

applyWhen :: Bool -> (a -> a) -> a -> aSource

applyUnless :: Bool -> (a -> a) -> a -> aSource

apply2way :: (a -> b -> c) -> (d -> a) -> (d -> b) -> d -> cSource